Menu Image - Version 2.9.4

Version Description

Download this release

Release Info

Developer takanakui
Plugin Icon 128x128 Menu Image
Version 2.9.4
Comparing to
See all releases

Code changes from version 2.9.3 to 2.9.4

Files changed (168) hide show
  1. freemius/LICENSE.txt +0 -0
  2. freemius/README.md +0 -0
  3. freemius/assets/css/admin/account.css +0 -0
  4. freemius/assets/css/admin/add-ons.css +0 -0
  5. freemius/assets/css/admin/affiliation.css +0 -0
  6. freemius/assets/css/admin/checkout.css +0 -0
  7. freemius/assets/css/admin/common.css +0 -0
  8. freemius/assets/css/admin/connect.css +0 -0
  9. freemius/assets/css/admin/debug.css +0 -0
  10. freemius/assets/css/admin/dialog-boxes.css +0 -0
  11. freemius/assets/css/admin/gdpr-optin-notice.css +0 -0
  12. freemius/assets/css/admin/index.php +0 -0
  13. freemius/assets/css/customizer.css +0 -0
  14. freemius/assets/css/index.php +0 -0
  15. freemius/assets/img/index.php +0 -0
  16. freemius/assets/img/mobile-menu.png +0 -0
  17. freemius/assets/img/theme-icon.png +0 -0
  18. freemius/assets/index.php +0 -0
  19. freemius/assets/js/index.php +0 -0
  20. freemius/assets/js/nojquery.ba-postmessage.js +0 -0
  21. freemius/assets/js/nojquery.ba-postmessage.min.js +0 -0
  22. freemius/assets/js/postmessage.js +0 -0
  23. freemius/composer.json +0 -0
  24. freemius/config.php +0 -0
  25. freemius/includes/class-freemius-abstract.php +0 -0
  26. freemius/includes/class-freemius.php +0 -0
  27. freemius/includes/class-fs-admin-notices.php +0 -0
  28. freemius/includes/class-fs-api.php +0 -0
  29. freemius/includes/class-fs-logger.php +0 -0
  30. freemius/includes/class-fs-options.php +0 -0
  31. freemius/includes/class-fs-plugin-updater.php +0 -0
  32. freemius/includes/class-fs-security.php +0 -0
  33. freemius/includes/class-fs-storage.php +0 -0
  34. freemius/includes/class-fs-user-lock.php +0 -0
  35. freemius/includes/customizer/class-fs-customizer-support-section.php +0 -0
  36. freemius/includes/customizer/class-fs-customizer-upsell-control.php +0 -0
  37. freemius/includes/customizer/index.php +0 -0
  38. freemius/includes/debug/class-fs-debug-bar-panel.php +0 -0
  39. freemius/includes/debug/debug-bar-start.php +0 -0
  40. freemius/includes/debug/index.php +0 -0
  41. freemius/includes/entities/class-fs-affiliate-terms.php +0 -0
  42. freemius/includes/entities/class-fs-affiliate.php +0 -0
  43. freemius/includes/entities/class-fs-billing.php +0 -0
  44. freemius/includes/entities/class-fs-entity.php +0 -0
  45. freemius/includes/entities/class-fs-payment.php +0 -0
  46. freemius/includes/entities/class-fs-plugin-info.php +0 -0
  47. freemius/includes/entities/class-fs-plugin-license.php +0 -0
  48. freemius/includes/entities/class-fs-plugin-plan.php +0 -0
  49. freemius/includes/entities/class-fs-plugin-tag.php +0 -0
  50. freemius/includes/entities/class-fs-plugin.php +0 -0
  51. freemius/includes/entities/class-fs-pricing.php +0 -0
  52. freemius/includes/entities/class-fs-scope-entity.php +0 -0
  53. freemius/includes/entities/class-fs-site.php +0 -0
  54. freemius/includes/entities/class-fs-subscription.php +0 -0
  55. freemius/includes/entities/class-fs-user.php +0 -0
  56. freemius/includes/entities/index.php +0 -0
  57. freemius/includes/fs-core-functions.php +0 -0
  58. freemius/includes/fs-essential-functions.php +0 -0
  59. freemius/includes/fs-plugin-info-dialog.php +0 -0
  60. freemius/includes/i18n.php +0 -0
  61. freemius/includes/index.php +0 -0
  62. freemius/includes/l10n.php +0 -0
  63. freemius/includes/managers/class-fs-admin-menu-manager.php +0 -0
  64. freemius/includes/managers/class-fs-admin-notice-manager.php +0 -0
  65. freemius/includes/managers/class-fs-cache-manager.php +0 -0
  66. freemius/includes/managers/class-fs-gdpr-manager.php +0 -0
  67. freemius/includes/managers/class-fs-key-value-storage.php +0 -0
  68. freemius/includes/managers/class-fs-license-manager.php +0 -0
  69. freemius/includes/managers/class-fs-option-manager.php +0 -0
  70. freemius/includes/managers/class-fs-plan-manager.php +0 -0
  71. freemius/includes/managers/class-fs-plugin-manager.php +0 -0
  72. freemius/includes/managers/index.php +0 -0
  73. freemius/includes/sdk/Exceptions/ArgumentNotExistException.php +0 -0
  74. freemius/includes/sdk/Exceptions/EmptyArgumentException.php +0 -0
  75. freemius/includes/sdk/Exceptions/Exception.php +0 -0
  76. freemius/includes/sdk/Exceptions/InvalidArgumentException.php +0 -0
  77. freemius/includes/sdk/Exceptions/OAuthException.php +0 -0
  78. freemius/includes/sdk/Exceptions/index.php +0 -0
  79. freemius/includes/sdk/FreemiusBase.php +0 -0
  80. freemius/includes/sdk/FreemiusWordPress.php +0 -0
  81. freemius/includes/sdk/LICENSE.txt +0 -0
  82. freemius/includes/sdk/index.php +0 -0
  83. freemius/includes/supplements/fs-essential-functions-1.1.7.1.php +0 -0
  84. freemius/includes/supplements/fs-essential-functions-2.2.1.php +0 -0
  85. freemius/includes/supplements/index.php +0 -0
  86. freemius/index.php +0 -0
  87. freemius/languages/freemius-da_DK.mo +0 -0
  88. freemius/languages/freemius-da_DK.po +0 -0
  89. freemius/languages/freemius-en.mo +0 -0
  90. freemius/languages/freemius-en.po +0 -0
  91. freemius/languages/freemius-es_ES.mo +0 -0
  92. freemius/languages/freemius-es_ES.po +0 -0
  93. freemius/languages/freemius-fr_FR.mo +0 -0
  94. freemius/languages/freemius-fr_FR.po +0 -0
  95. freemius/languages/freemius-he_IL.mo +0 -0
  96. freemius/languages/freemius-he_IL.po +0 -0
  97. freemius/languages/freemius-hu_HU.mo +0 -0
  98. freemius/languages/freemius-hu_HU.po +0 -0
  99. freemius/languages/freemius-it_IT.mo +0 -0
  100. freemius/languages/freemius-it_IT.po +0 -0
  101. freemius/languages/freemius-ja_JP.mo +0 -0
  102. freemius/languages/freemius-ja_JP.po +0 -0
  103. freemius/languages/freemius-nl_NL.mo +0 -0
  104. freemius/languages/freemius-nl_NL.po +0 -0
  105. freemius/languages/freemius-ru_RU.mo +0 -0
  106. freemius/languages/freemius-ru_RU.po +0 -0
  107. freemius/languages/freemius.pot +0 -0
  108. freemius/languages/index.php +0 -0
  109. freemius/require.php +0 -0
  110. freemius/start.php +0 -0
  111. freemius/templates/account.php +0 -0
  112. freemius/templates/account/billing.php +0 -0
  113. freemius/templates/account/index.php +0 -0
  114. freemius/templates/account/partials/activate-license-button.php +0 -0
  115. freemius/templates/account/partials/addon.php +0 -0
  116. freemius/templates/account/partials/deactivate-license-button.php +0 -0
  117. freemius/templates/account/partials/index.php +0 -0
  118. freemius/templates/account/partials/site.php +0 -0
  119. freemius/templates/account/payments.php +0 -0
  120. freemius/templates/add-ons.php +0 -0
  121. freemius/templates/add-trial-to-pricing.php +0 -0
  122. freemius/templates/admin-notice.php +0 -0
  123. freemius/templates/ajax-loader.php +0 -0
  124. freemius/templates/auto-installation.php +0 -0
  125. freemius/templates/checkout.php +0 -0
  126. freemius/templates/connect.php +0 -0
  127. freemius/templates/contact.php +0 -0
  128. freemius/templates/debug.php +0 -0
  129. freemius/templates/debug/api-calls.php +0 -0
  130. freemius/templates/debug/index.php +0 -0
  131. freemius/templates/debug/logger.php +0 -0
  132. freemius/templates/debug/plugins-themes-sync.php +0 -0
  133. freemius/templates/debug/scheduled-crons.php +0 -0
  134. freemius/templates/email.php +0 -0
  135. freemius/templates/firewall-issues-js.php +0 -0
  136. freemius/templates/forms/affiliation.php +0 -0
  137. freemius/templates/forms/deactivation/contact.php +0 -0
  138. freemius/templates/forms/deactivation/form.php +0 -0
  139. freemius/templates/forms/deactivation/index.php +0 -0
  140. freemius/templates/forms/deactivation/retry-skip.php +0 -0
  141. freemius/templates/forms/index.php +0 -0
  142. freemius/templates/forms/license-activation.php +0 -0
  143. freemius/templates/forms/optout.php +0 -0
  144. freemius/templates/forms/premium-versions-upgrade-handler.php +0 -0
  145. freemius/templates/forms/premium-versions-upgrade-metadata.php +0 -0
  146. freemius/templates/forms/resend-key.php +0 -0
  147. freemius/templates/forms/subscription-cancellation.php +0 -0
  148. freemius/templates/forms/trial-start.php +0 -0
  149. freemius/templates/gdpr-optin-js.php +0 -0
  150. freemius/templates/index.php +0 -0
  151. freemius/templates/js/index.php +0 -0
  152. freemius/templates/js/jquery.content-change.php +0 -0
  153. freemius/templates/js/open-license-activation.php +0 -0
  154. freemius/templates/js/style-premium-theme.php +0 -0
  155. freemius/templates/partials/network-activation.php +0 -0
  156. freemius/templates/plugin-icon.php +0 -0
  157. freemius/templates/plugin-info/description.php +0 -0
  158. freemius/templates/plugin-info/features.php +0 -0
  159. freemius/templates/plugin-info/index.php +0 -0
  160. freemius/templates/plugin-info/screenshots.php +0 -0
  161. freemius/templates/powered-by.php +0 -0
  162. freemius/templates/pricing.php +0 -0
  163. freemius/templates/secure-https-header.php +0 -0
  164. freemius/templates/sticky-admin-notice-js.php +0 -0
  165. freemius/templates/tabs-capture-js.php +0 -0
  166. freemius/templates/tabs.php +0 -0
  167. menu-image.php +9 -6
  168. readme.txt +5 -1
freemius/LICENSE.txt CHANGED
File without changes
freemius/README.md CHANGED
File without changes
freemius/assets/css/admin/account.css CHANGED
File without changes
freemius/assets/css/admin/add-ons.css CHANGED
File without changes
freemius/assets/css/admin/affiliation.css CHANGED
File without changes
freemius/assets/css/admin/checkout.css CHANGED
File without changes
freemius/assets/css/admin/common.css CHANGED
File without changes
freemius/assets/css/admin/connect.css CHANGED
File without changes
freemius/assets/css/admin/debug.css CHANGED
File without changes
freemius/assets/css/admin/dialog-boxes.css CHANGED
File without changes
freemius/assets/css/admin/gdpr-optin-notice.css CHANGED
File without changes
freemius/assets/css/admin/index.php CHANGED
File without changes
freemius/assets/css/customizer.css CHANGED
File without changes
freemius/assets/css/index.php CHANGED
File without changes
freemius/assets/img/index.php CHANGED
File without changes
freemius/assets/img/mobile-menu.png CHANGED
File without changes
freemius/assets/img/theme-icon.png CHANGED
File without changes
freemius/assets/index.php CHANGED
File without changes
freemius/assets/js/index.php CHANGED
File without changes
freemius/assets/js/nojquery.ba-postmessage.js CHANGED
File without changes
freemius/assets/js/nojquery.ba-postmessage.min.js CHANGED
File without changes
freemius/assets/js/postmessage.js CHANGED
File without changes
freemius/composer.json CHANGED
File without changes
freemius/config.php CHANGED
File without changes
freemius/includes/class-freemius-abstract.php CHANGED
File without changes
freemius/includes/class-freemius.php CHANGED
File without changes
freemius/includes/class-fs-admin-notices.php CHANGED
File without changes
freemius/includes/class-fs-api.php CHANGED
File without changes
freemius/includes/class-fs-logger.php CHANGED
File without changes
freemius/includes/class-fs-options.php CHANGED
File without changes
freemius/includes/class-fs-plugin-updater.php CHANGED
File without changes
freemius/includes/class-fs-security.php CHANGED
File without changes
freemius/includes/class-fs-storage.php CHANGED
File without changes
freemius/includes/class-fs-user-lock.php CHANGED
File without changes
freemius/includes/customizer/class-fs-customizer-support-section.php CHANGED
File without changes
freemius/includes/customizer/class-fs-customizer-upsell-control.php CHANGED
File without changes
freemius/includes/customizer/index.php CHANGED
File without changes
freemius/includes/debug/class-fs-debug-bar-panel.php CHANGED
File without changes
freemius/includes/debug/debug-bar-start.php CHANGED
File without changes
freemius/includes/debug/index.php CHANGED
File without changes
freemius/includes/entities/class-fs-affiliate-terms.php CHANGED
File without changes
freemius/includes/entities/class-fs-affiliate.php CHANGED
File without changes
freemius/includes/entities/class-fs-billing.php CHANGED
File without changes
freemius/includes/entities/class-fs-entity.php CHANGED
File without changes
freemius/includes/entities/class-fs-payment.php CHANGED
File without changes
freemius/includes/entities/class-fs-plugin-info.php CHANGED
File without changes
freemius/includes/entities/class-fs-plugin-license.php CHANGED
File without changes
freemius/includes/entities/class-fs-plugin-plan.php CHANGED
File without changes
freemius/includes/entities/class-fs-plugin-tag.php CHANGED
File without changes
freemius/includes/entities/class-fs-plugin.php CHANGED
File without changes
freemius/includes/entities/class-fs-pricing.php CHANGED
File without changes
freemius/includes/entities/class-fs-scope-entity.php CHANGED
File without changes
freemius/includes/entities/class-fs-site.php CHANGED
File without changes
freemius/includes/entities/class-fs-subscription.php CHANGED
File without changes
freemius/includes/entities/class-fs-user.php CHANGED
File without changes
freemius/includes/entities/index.php CHANGED
File without changes
freemius/includes/fs-core-functions.php CHANGED
File without changes
freemius/includes/fs-essential-functions.php CHANGED
File without changes
freemius/includes/fs-plugin-info-dialog.php CHANGED
File without changes
freemius/includes/i18n.php CHANGED
File without changes
freemius/includes/index.php CHANGED
File without changes
freemius/includes/l10n.php CHANGED
File without changes
freemius/includes/managers/class-fs-admin-menu-manager.php CHANGED
File without changes
freemius/includes/managers/class-fs-admin-notice-manager.php CHANGED
File without changes
freemius/includes/managers/class-fs-cache-manager.php CHANGED
File without changes
freemius/includes/managers/class-fs-gdpr-manager.php CHANGED
File without changes
freemius/includes/managers/class-fs-key-value-storage.php CHANGED
File without changes
freemius/includes/managers/class-fs-license-manager.php CHANGED
File without changes
freemius/includes/managers/class-fs-option-manager.php CHANGED
File without changes
freemius/includes/managers/class-fs-plan-manager.php CHANGED
File without changes
freemius/includes/managers/class-fs-plugin-manager.php CHANGED
File without changes
freemius/includes/managers/index.php CHANGED
File without changes
freemius/includes/sdk/Exceptions/ArgumentNotExistException.php CHANGED
File without changes
freemius/includes/sdk/Exceptions/EmptyArgumentException.php CHANGED
File without changes
freemius/includes/sdk/Exceptions/Exception.php CHANGED
File without changes
freemius/includes/sdk/Exceptions/InvalidArgumentException.php CHANGED
File without changes
freemius/includes/sdk/Exceptions/OAuthException.php CHANGED
File without changes
freemius/includes/sdk/Exceptions/index.php CHANGED
File without changes
freemius/includes/sdk/FreemiusBase.php CHANGED
File without changes
freemius/includes/sdk/FreemiusWordPress.php CHANGED
File without changes
freemius/includes/sdk/LICENSE.txt CHANGED
File without changes
freemius/includes/sdk/index.php CHANGED
File without changes
freemius/includes/supplements/fs-essential-functions-1.1.7.1.php CHANGED
File without changes
freemius/includes/supplements/fs-essential-functions-2.2.1.php CHANGED
File without changes
freemius/includes/supplements/index.php CHANGED
File without changes
freemius/index.php CHANGED
File without changes
freemius/languages/freemius-da_DK.mo CHANGED
File without changes
freemius/languages/freemius-da_DK.po CHANGED
File without changes
freemius/languages/freemius-en.mo CHANGED
File without changes
freemius/languages/freemius-en.po CHANGED
File without changes
freemius/languages/freemius-es_ES.mo CHANGED
File without changes
freemius/languages/freemius-es_ES.po CHANGED
File without changes
freemius/languages/freemius-fr_FR.mo CHANGED
File without changes
freemius/languages/freemius-fr_FR.po CHANGED
File without changes
freemius/languages/freemius-he_IL.mo CHANGED
File without changes
freemius/languages/freemius-he_IL.po CHANGED
File without changes
freemius/languages/freemius-hu_HU.mo CHANGED
File without changes
freemius/languages/freemius-hu_HU.po CHANGED
File without changes
freemius/languages/freemius-it_IT.mo CHANGED
File without changes
freemius/languages/freemius-it_IT.po CHANGED
File without changes
freemius/languages/freemius-ja_JP.mo CHANGED
File without changes
freemius/languages/freemius-ja_JP.po CHANGED
File without changes
freemius/languages/freemius-nl_NL.mo CHANGED
File without changes
freemius/languages/freemius-nl_NL.po CHANGED
File without changes
freemius/languages/freemius-ru_RU.mo CHANGED
File without changes
freemius/languages/freemius-ru_RU.po CHANGED
File without changes
freemius/languages/freemius.pot CHANGED
File without changes
freemius/languages/index.php CHANGED
File without changes
freemius/require.php CHANGED
File without changes
freemius/start.php CHANGED
File without changes
freemius/templates/account.php CHANGED
File without changes
freemius/templates/account/billing.php CHANGED
File without changes
freemius/templates/account/index.php CHANGED
File without changes
freemius/templates/account/partials/activate-license-button.php CHANGED
File without changes
freemius/templates/account/partials/addon.php CHANGED
File without changes
freemius/templates/account/partials/deactivate-license-button.php CHANGED
File without changes
freemius/templates/account/partials/index.php CHANGED
File without changes
freemius/templates/account/partials/site.php CHANGED
File without changes
freemius/templates/account/payments.php CHANGED
File without changes
freemius/templates/add-ons.php CHANGED
File without changes
freemius/templates/add-trial-to-pricing.php CHANGED
File without changes
freemius/templates/admin-notice.php CHANGED
File without changes
freemius/templates/ajax-loader.php CHANGED
File without changes
freemius/templates/auto-installation.php CHANGED
File without changes
freemius/templates/checkout.php CHANGED
File without changes
freemius/templates/connect.php CHANGED
File without changes
freemius/templates/contact.php CHANGED
File without changes
freemius/templates/debug.php CHANGED
File without changes
freemius/templates/debug/api-calls.php CHANGED
File without changes
freemius/templates/debug/index.php CHANGED
File without changes
freemius/templates/debug/logger.php CHANGED
File without changes
freemius/templates/debug/plugins-themes-sync.php CHANGED
File without changes
freemius/templates/debug/scheduled-crons.php CHANGED
File without changes
freemius/templates/email.php CHANGED
File without changes
freemius/templates/firewall-issues-js.php CHANGED
File without changes
freemius/templates/forms/affiliation.php CHANGED
File without changes
freemius/templates/forms/deactivation/contact.php CHANGED
File without changes
freemius/templates/forms/deactivation/form.php CHANGED
File without changes
freemius/templates/forms/deactivation/index.php CHANGED
File without changes
freemius/templates/forms/deactivation/retry-skip.php CHANGED
File without changes
freemius/templates/forms/index.php CHANGED
File without changes
freemius/templates/forms/license-activation.php CHANGED
File without changes
freemius/templates/forms/optout.php CHANGED
File without changes
freemius/templates/forms/premium-versions-upgrade-handler.php CHANGED
File without changes
freemius/templates/forms/premium-versions-upgrade-metadata.php CHANGED
File without changes
freemius/templates/forms/resend-key.php CHANGED
File without changes
freemius/templates/forms/subscription-cancellation.php CHANGED
File without changes
freemius/templates/forms/trial-start.php CHANGED
File without changes
freemius/templates/gdpr-optin-js.php CHANGED
File without changes
freemius/templates/index.php CHANGED
File without changes
freemius/templates/js/index.php CHANGED
File without changes
freemius/templates/js/jquery.content-change.php CHANGED
File without changes
freemius/templates/js/open-license-activation.php CHANGED
File without changes
freemius/templates/js/style-premium-theme.php CHANGED
File without changes
freemius/templates/partials/network-activation.php CHANGED
File without changes
freemius/templates/plugin-icon.php CHANGED
File without changes
freemius/templates/plugin-info/description.php CHANGED
File without changes
freemius/templates/plugin-info/features.php CHANGED
File without changes
freemius/templates/plugin-info/index.php CHANGED
File without changes
freemius/templates/plugin-info/screenshots.php CHANGED
File without changes
freemius/templates/powered-by.php CHANGED
File without changes
freemius/templates/pricing.php CHANGED
File without changes
freemius/templates/secure-https-header.php CHANGED
File without changes
freemius/templates/sticky-admin-notice-js.php CHANGED
File without changes
freemius/templates/tabs-capture-js.php CHANGED
File without changes
freemius/templates/tabs.php CHANGED
File without changes
menu-image.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * @package Menu_Image
4
- * @version 2.6.4
5
  * @licence GPLv2
6
  */
7
 
@@ -10,7 +10,7 @@ Plugin Name: Menu Image
10
  Plugin URI: https://www.jedipress.com
11
  Description: Improve your navigation menu items with images, logos, icons, buttons.
12
  Author: Rui Guerreiro
13
- Version: 2.9.3
14
  Author URI: https://www.jedipress.com
15
  */
16
 
@@ -330,7 +330,10 @@ class Menu_Image_Plugin {
330
  if ( ! is_admin() ) {
331
 
332
  global $wp_filter;
333
- if ( isset( $wp_filter['wp_nav_menu_args'] ) && 0 < count( $wp_filter['wp_nav_menu_args'] ) ) {
 
 
 
334
  add_filter( 'walker_nav_menu_start_el', array( $this, 'menu_image_nav_menu_item_filter' ), 10, 4 );
335
  } else {
336
  add_filter( 'the_title', array( $this, 'menu_image_nav_menu_item_title_filter' ), 10, 4 );
@@ -515,7 +518,7 @@ class Menu_Image_Plugin {
515
  */
516
  public function menu_image_nav_menu_item_title_filter( $title, $item = null, $depth = null, $args = null ) {
517
 
518
- if ( ! is_nav_menu_item( $item ) || ! isset( $item ) ) {
519
  return $title;
520
  }
521
 
@@ -662,7 +665,7 @@ class Menu_Image_Plugin {
662
  * Loading custom stylesheet to fix images positioning in match themes
663
  */
664
  public function menu_image_add_inline_style_action() {
665
- wp_register_style( 'menu-image', plugins_url( '', __FILE__ ) . '/includes/css/menu-image.css', array(), '2.9.3' );
666
  wp_enqueue_style( 'menu-image' );
667
  }
668
 
@@ -672,7 +675,7 @@ class Menu_Image_Plugin {
672
  * @since 2.0
673
  */
674
  public function menu_image_admin_head_nav_menus_action() {
675
- wp_enqueue_script( 'menu-image-admin', plugins_url( '/includes/js/menu-image-admin.js', __FILE__ ), array( 'jquery' ), '2.9.3' );
676
  wp_localize_script(
677
  'menu-image-admin', 'menuImage', array(
678
  'l10n' => array(
1
  <?php
2
  /**
3
  * @package Menu_Image
4
+ * @version 2.9.4
5
  * @licence GPLv2
6
  */
7
 
10
  Plugin URI: https://www.jedipress.com
11
  Description: Improve your navigation menu items with images, logos, icons, buttons.
12
  Author: Rui Guerreiro
13
+ Version: 2.9.4
14
  Author URI: https://www.jedipress.com
15
  */
16
 
330
  if ( ! is_admin() ) {
331
 
332
  global $wp_filter;
333
+
334
+ $menu_filters_count = ( is_array($wp_filter['wp_nav_menu_args'] ) ? count( $wp_filter['wp_nav_menu_args'] ) : 0 );
335
+
336
+ if ( isset( $wp_filter['wp_nav_menu_args'] ) && 0 === $menu_filters_count ) {
337
  add_filter( 'walker_nav_menu_start_el', array( $this, 'menu_image_nav_menu_item_filter' ), 10, 4 );
338
  } else {
339
  add_filter( 'the_title', array( $this, 'menu_image_nav_menu_item_title_filter' ), 10, 4 );
518
  */
519
  public function menu_image_nav_menu_item_title_filter( $title, $item = null, $depth = null, $args = null ) {
520
 
521
+ if ( ! is_nav_menu_item( $item ) || ! isset( $item ) || strpos( $title, 'menu-image' ) > 0 ) {
522
  return $title;
523
  }
524
 
665
  * Loading custom stylesheet to fix images positioning in match themes
666
  */
667
  public function menu_image_add_inline_style_action() {
668
+ wp_register_style( 'menu-image', plugins_url( '', __FILE__ ) . '/includes/css/menu-image.css', array(), '2.9.4' );
669
  wp_enqueue_style( 'menu-image' );
670
  }
671
 
675
  * @since 2.0
676
  */
677
  public function menu_image_admin_head_nav_menus_action() {
678
+ wp_enqueue_script( 'menu-image-admin', plugins_url( '/includes/js/menu-image-admin.js', __FILE__ ), array( 'jquery' ), '2.9.4' );
679
  wp_localize_script(
680
  'menu-image-admin', 'menuImage', array(
681
  'l10n' => array(
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: menu, navigation, image, icons, nav menu
4
  Donate link: https://www.buymeacoffee.com/ruiguerreiro
5
  Requires at least: 4.4.0
6
  Tested up to: 5.2
7
- Stable tag: 2.9.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -108,6 +108,10 @@ add_filter( 'wp_calculate_image_srcset', '__return_false' );
108
  2. Menu preview in standard twenty-thirteen theme
109
 
110
  == Changelog ==
 
 
 
 
111
  ### 2.9.3 ###
112
  * New - Add compatibility with Max Megamenu.
113
  * New - Add new filter to change the markup of the image
4
  Donate link: https://www.buymeacoffee.com/ruiguerreiro
5
  Requires at least: 4.4.0
6
  Tested up to: 5.2
7
+ Stable tag: 2.9.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
108
  2. Menu preview in standard twenty-thirteen theme
109
 
110
  == Changelog ==
111
+
112
+ ### 2.9.4 ###
113
+ * Fix - Bug of the duplicated images.
114
+
115
  ### 2.9.3 ###
116
  * New - Add compatibility with Max Megamenu.
117
  * New - Add new filter to change the markup of the image