Menu Icons by ThemeIsle - Version 0.2.1

Version Description

  • Fix icon selector compatibility with WP 3.9
Download this release

Release Info

Developer kucrut
Plugin Icon 128x128 Menu Icons by ThemeIsle
Version 0.2.1
Comparing to
See all releases

Code changes from version 0.2.0 to 0.2.1

Files changed (4) hide show
  1. js/admin.js +6 -5
  2. languages/menu-icons.pot +4 -4
  3. menu-icons.php +3 -3
  4. readme.txt +5 -2
js/admin.js CHANGED
@@ -221,14 +221,14 @@
221
  var sidebar = this.sidebar;
222
  var item = this.controller.miGetCurrentItem();
223
 
224
- sidebar.set( 'details', new media.view.miFont.Icon.Preview({
225
  controller : this.controller,
226
  model : item,
227
  type : this.options.type,
228
  priority : 80
229
  }) );
230
 
231
- sidebar.set( 'display', new media.view.miSidebar.Settings({
232
  controller : this.controller,
233
  model : item,
234
  type : this.options.type,
@@ -240,8 +240,8 @@
240
  this.controller.miUpdateItemProps();
241
 
242
  var sidebar = this.sidebar;
243
- sidebar.unset('details');
244
- sidebar.unset('display');
245
  }
246
  });
247
 
@@ -387,7 +387,7 @@
387
 
388
 
389
  // Font icon: Preview
390
- media.view.miFont.Icon.Preview = Backbone.View.extend({
391
  tagName : 'p',
392
  className : 'mi-preview menu-item attachment-info',
393
  events : {
@@ -396,6 +396,7 @@
396
 
397
  initialize : function() {
398
  this.model.on( 'change', this.render, this );
 
399
  },
400
 
401
  render : function() {
221
  var sidebar = this.sidebar;
222
  var item = this.controller.miGetCurrentItem();
223
 
224
+ sidebar.set( 'preview', new media.view.miFont.Icon.Preview({
225
  controller : this.controller,
226
  model : item,
227
  type : this.options.type,
228
  priority : 80
229
  }) );
230
 
231
+ sidebar.set( 'settings', new media.view.miSidebar.Settings({
232
  controller : this.controller,
233
  model : item,
234
  type : this.options.type,
240
  this.controller.miUpdateItemProps();
241
 
242
  var sidebar = this.sidebar;
243
+ sidebar.unset('preview');
244
+ sidebar.unset('settings');
245
  }
246
  });
247
 
387
 
388
 
389
  // Font icon: Preview
390
+ media.view.miFont.Icon.Preview = media.View.extend({
391
  tagName : 'p',
392
  className : 'mi-preview menu-item attachment-info',
393
  events : {
396
 
397
  initialize : function() {
398
  this.model.on( 'change', this.render, this );
399
+ media.View.prototype.initialize.apply( this, arguments )
400
  },
401
 
402
  render : function() {
languages/menu-icons.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Menu Icons package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Menu Icons 0.2.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/menu-icons\n"
7
- "POT-Creation-Date: 2014-04-07 09:17:20+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -2326,9 +2326,9 @@ msgstr ""
2326
  msgid "Menu Icons"
2327
  msgstr ""
2328
 
2329
- #. #-#-#-#-# menu-icons.pot (Menu Icons 0.2.0) #-#-#-#-#
2330
  #. Plugin URI of the plugin/theme
2331
- #. #-#-#-#-# menu-icons.pot (Menu Icons 0.2.0) #-#-#-#-#
2332
  #. Author URI of the plugin/theme
2333
  msgid "http://kucrut.org/"
2334
  msgstr ""
2
  # This file is distributed under the same license as the Menu Icons package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Menu Icons 0.2.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/menu-icons\n"
7
+ "POT-Creation-Date: 2014-04-11 07:16:30+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2326
  msgid "Menu Icons"
2327
  msgstr ""
2328
 
2329
+ #. #-#-#-#-# menu-icons.pot (Menu Icons 0.2.1) #-#-#-#-#
2330
  #. Plugin URI of the plugin/theme
2331
+ #. #-#-#-#-# menu-icons.pot (Menu Icons 0.2.1) #-#-#-#-#
2332
  #. Author URI of the plugin/theme
2333
  msgid "http://kucrut.org/"
2334
  msgstr ""
menu-icons.php CHANGED
@@ -4,14 +4,14 @@
4
  * Menu Icons
5
  *
6
  * @package Menu_Icons
7
- * @version 0.2.0
8
  * @author Dzikri Aziz <kvcrvt@gmail.com>
9
  *
10
  *
11
  * Plugin name: Menu Icons
12
  * Plugin URI: http://kucrut.org/
13
  * Description: Easily add icons to your navigation menu items
14
- * Version: 0.2.0
15
  * Author: Dzikri Aziz
16
  * Author URI: http://kucrut.org/
17
  * License: GPLv2
@@ -24,7 +24,7 @@
24
  */
25
  final class Menu_Icons {
26
 
27
- const VERSION = '0.2.0';
28
 
29
  /**
30
  * Holds plugin data
4
  * Menu Icons
5
  *
6
  * @package Menu_Icons
7
+ * @version 0.2.1
8
  * @author Dzikri Aziz <kvcrvt@gmail.com>
9
  *
10
  *
11
  * Plugin name: Menu Icons
12
  * Plugin URI: http://kucrut.org/
13
  * Description: Easily add icons to your navigation menu items
14
+ * Version: 0.2.1
15
  * Author: Dzikri Aziz
16
  * Author URI: http://kucrut.org/
17
  * License: GPLv2
24
  */
25
  final class Menu_Icons {
26
 
27
+ const VERSION = '0.2.1';
28
 
29
  /**
30
  * Holds plugin data
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: kucrut
3
  Donate Link: http://kucrut.org/#coffee
4
  Tags: menu, nav-menu, icons, navigation
5
  Requires at least: 3.8
6
- Tested up to: 3.8.1
7
- Stable tag: 0.2.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -86,6 +86,9 @@ add_filter( 'menu_icons_load_extra_style', '__return_false' );
86
 
87
 
88
  == Changelog ==
 
 
 
89
  = 0.2.0 =
90
  * Media frame for icon selection
91
  * New font icon: Font Awesome
3
  Donate Link: http://kucrut.org/#coffee
4
  Tags: menu, nav-menu, icons, navigation
5
  Requires at least: 3.8
6
+ Tested up to: 3.9-RC1
7
+ Stable tag: 0.2.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
86
 
87
 
88
  == Changelog ==
89
+ = 0.2.1 =
90
+ * Fix icon selector compatibility with WP 3.9
91
+
92
  = 0.2.0 =
93
  * Media frame for icon selection
94
  * New font icon: Font Awesome