Menu Icons by ThemeIsle - Version 0.12.1

Version Description

  • 2019-11-15
Download this release

Release Info

Developer codeinwp
Plugin Icon 128x128 Menu Icons by ThemeIsle
Version 0.12.1
Comparing to
See all releases

Code changes from version 0.12.0 to 0.12.1

CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
 
 
 
 
 
2
  ### v0.12.0 - 2019-11-15
3
  **Changes:**
4
  * Fix issues with WordPress 5.3.
1
 
2
+ ### v0.12.1 - 2019-11-15
3
+ **Changes:**
4
+ * Improve legacy compatibility
5
+
6
  ### v0.12.0 - 2019-11-15
7
  **Changes:**
8
  * Fix issues with WordPress 5.3.
js/admin.min.js CHANGED
@@ -428,15 +428,16 @@ var MenuIcons = wp.media.view.MediaFrame.IconPicker.extend({
428
  });
429
 
430
  wp.media.view.MediaFrame.IconPicker.prototype.initialize.apply(this, arguments);
431
- this.off('open', this.setMenuTabPanelAriaAttributes, this);
432
- // Set the router ARIA tab panel attributes when the modal opens.
433
- this.off('open', this.setRouterTabPanelAriaAttributes, this);
434
-
435
- // Update the menu ARIA tab panel attributes when the content updates.
436
- this.off('content:render', this.setMenuTabPanelAriaAttributes, this);
437
- // Update the router ARIA tab panel attributes when the content updates.
438
- this.off('content:render', this.setRouterTabPanelAriaAttributes, this);
439
-
 
440
  this.listenTo(this.target, 'change', this.miUpdateItemProps);
441
  this.on('select', this.miClearTarget, this);
442
  },
428
  });
429
 
430
  wp.media.view.MediaFrame.IconPicker.prototype.initialize.apply(this, arguments);
431
+ if (this.setMenuTabPanelAriaAttributes) {
432
+ this.off('open', this.setMenuTabPanelAriaAttributes, this);
433
+ // Set the router ARIA tab panel attributes when the modal opens.
434
+ this.off('open', this.setRouterTabPanelAriaAttributes, this);
435
+
436
+ // Update the menu ARIA tab panel attributes when the content updates.
437
+ this.off('content:render', this.setMenuTabPanelAriaAttributes, this);
438
+ // Update the router ARIA tab panel attributes when the content updates.
439
+ this.off('content:render', this.setRouterTabPanelAriaAttributes, this);
440
+ }
441
  this.listenTo(this.target, 'change', this.miUpdateItemProps);
442
  this.on('select', this.miClearTarget, this);
443
  },
js/src/media/views/frame.js CHANGED
@@ -18,15 +18,16 @@ var MenuIcons = wp.media.view.MediaFrame.IconPicker.extend({
18
  });
19
 
20
  wp.media.view.MediaFrame.IconPicker.prototype.initialize.apply( this, arguments );
21
- this.off( 'open', this.setMenuTabPanelAriaAttributes, this );
22
- // Set the router ARIA tab panel attributes when the modal opens.
23
- this.off( 'open', this.setRouterTabPanelAriaAttributes, this );
24
-
25
- // Update the menu ARIA tab panel attributes when the content updates.
26
- this.off( 'content:render', this.setMenuTabPanelAriaAttributes, this );
27
- // Update the router ARIA tab panel attributes when the content updates.
28
- this.off( 'content:render', this.setRouterTabPanelAriaAttributes, this );
29
-
 
30
  this.listenTo( this.target, 'change', this.miUpdateItemProps );
31
  this.on( 'select', this.miClearTarget, this );
32
  },
18
  });
19
 
20
  wp.media.view.MediaFrame.IconPicker.prototype.initialize.apply( this, arguments );
21
+ if(this.setMenuTabPanelAriaAttributes){
22
+ this.off( 'open', this.setMenuTabPanelAriaAttributes, this );
23
+ // Set the router ARIA tab panel attributes when the modal opens.
24
+ this.off( 'open', this.setRouterTabPanelAriaAttributes, this );
25
+
26
+ // Update the menu ARIA tab panel attributes when the content updates.
27
+ this.off( 'content:render', this.setMenuTabPanelAriaAttributes, this );
28
+ // Update the router ARIA tab panel attributes when the content updates.
29
+ this.off( 'content:render', this.setRouterTabPanelAriaAttributes, this );
30
+ }
31
  this.listenTo( this.target, 'change', this.miUpdateItemProps );
32
  this.on( 'select', this.miClearTarget, this );
33
  },
menu-icons.php CHANGED
@@ -11,7 +11,7 @@
11
  * Plugin name: Menu Icons
12
  * Plugin URI: https://github.com/Codeinwp/wp-menu-icons
13
  * Description: Spice up your navigation menus with pretty icons, easily.
14
- * Version: 0.12.0
15
  * Author: ThemeIsle
16
  * Author URI: https://themeisle.com
17
  * License: GPLv2
@@ -27,7 +27,7 @@
27
  */
28
  final class Menu_Icons {
29
 
30
- const VERSION = '0.12.0';
31
 
32
  /**
33
  * Holds plugin data
11
  * Plugin name: Menu Icons
12
  * Plugin URI: https://github.com/Codeinwp/wp-menu-icons
13
  * Description: Spice up your navigation menus with pretty icons, easily.
14
+ * Version: 0.12.1
15
  * Author: ThemeIsle
16
  * Author URI: https://themeisle.com
17
  * License: GPLv2
27
  */
28
  final class Menu_Icons {
29
 
30
+ const VERSION = '0.12.1';
31
 
32
  /**
33
  * Holds plugin data
readme.md CHANGED
@@ -224,6 +224,11 @@ Add this block of code to your [mu-plugin file](http://codex.wordpress.org/Must_
224
  Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/).
225
 
226
  ## Changelog ##
 
 
 
 
 
227
  ### 0.12.0 - 2019-11-15 ###
228
 
229
  * Fix issues with WordPress 5.3.
224
  Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/).
225
 
226
  ## Changelog ##
227
+ ### 0.12.1 - 2019-11-15 ###
228
+
229
+ * Improve legacy compatibility
230
+
231
+
232
  ### 0.12.0 - 2019-11-15 ###
233
 
234
  * Fix issues with WordPress 5.3.
readme.txt CHANGED
@@ -224,6 +224,11 @@ add_filter( 'menu_icons_menu_settings', 'my_menu_icons_menu_settings', 10, 2 );
224
  Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/).
225
 
226
  == Changelog ==
 
 
 
 
 
227
  = 0.12.0 - 2019-11-15 =
228
 
229
  * Fix issues with WordPress 5.3.
224
  Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/).
225
 
226
  == Changelog ==
227
+ = 0.12.1 - 2019-11-15 =
228
+
229
+ * Improve legacy compatibility
230
+
231
+
232
  = 0.12.0 - 2019-11-15 =
233
 
234
  * Fix issues with WordPress 5.3.
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit2b05694b89d62f77fe8a2612ce95e26f::getLoader();
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit67d8977463f91f02bf92bddd82eb3f2b::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit2b05694b89d62f77fe8a2612ce95e26f
6
  {
7
  private static $loader;
8
 
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit2b05694b89d62f77fe8a2612ce95e26f
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit2b05694b89d62f77fe8a2612ce95e26f', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit2b05694b89d62f77fe8a2612ce95e26f', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
@@ -42,14 +42,14 @@ class ComposerAutoloaderInit2b05694b89d62f77fe8a2612ce95e26f
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
- composerRequire2b05694b89d62f77fe8a2612ce95e26f($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
- function composerRequire2b05694b89d62f77fe8a2612ce95e26f($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit67d8977463f91f02bf92bddd82eb3f2b
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit67d8977463f91f02bf92bddd82eb3f2b', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit67d8977463f91f02bf92bddd82eb3f2b', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
42
 
43
  $includeFiles = require __DIR__ . '/autoload_files.php';
44
  foreach ($includeFiles as $fileIdentifier => $file) {
45
+ composerRequire67d8977463f91f02bf92bddd82eb3f2b($fileIdentifier, $file);
46
  }
47
 
48
  return $loader;
49
  }
50
  }
51
 
52
+ function composerRequire67d8977463f91f02bf92bddd82eb3f2b($fileIdentifier, $file)
53
  {
54
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
55
  require $file;