Menu Icons by ThemeIsle - Version 0.10.2

Version Description

  • Compatibility with WordPress 4.7.0, props Aaron K.
Download this release

Release Info

Developer themeisle
Plugin Icon 128x128 Menu Icons by ThemeIsle
Version 0.10.2
Comparing to
See all releases

Code changes from version 0.10.1 to 0.10.2

includes/library/walker-nav-menu-edit.php CHANGED
@@ -7,7 +7,7 @@
7
* is only loaded on the wp-admin/nav-menus.php page.
8
*
9
* @package Menu_Item_Custom_Fields
10
- * @version 0.1.1
11
* @author Dzikri Aziz <kvcrvt@gmail.com>
12
*/
13
@@ -27,6 +27,7 @@ class Menu_Item_Custom_Fields_Walker extends Walker_Nav_Menu_Edit {
27
*
28
* @see Walker_Nav_Menu::start_el()
29
* @since 0.1.0
30
*
31
* @param string $output Passed by reference. Used to append additional content.
32
* @param object $item Menu item data object.
@@ -39,7 +40,7 @@ class Menu_Item_Custom_Fields_Walker extends Walker_Nav_Menu_Edit {
39
parent::start_el( $item_output, $item, $depth, $args, $id );
40
$output .= preg_replace(
41
// NOTE: Check this regex from time to time!
42
- '/(?=<p[^>]+class="[^"]*field-move)/',
43
$this->get_fields( $item, $depth, $args ),
44
$item_output
45
);
7
* is only loaded on the wp-admin/nav-menus.php page.
8
*
9
* @package Menu_Item_Custom_Fields
10
+ * @version 0.2.0
11
* @author Dzikri Aziz <kvcrvt@gmail.com>
12
*/
13
27
*
28
* @see Walker_Nav_Menu::start_el()
29
* @since 0.1.0
30
+ * @since 0.2.0 Support WordPress 4.7.0's markup.
31
*
32
* @param string $output Passed by reference. Used to append additional content.
33
* @param object $item Menu item data object.
40
parent::start_el( $item_output, $item, $depth, $args, $id );
41
$output .= preg_replace(
42
// NOTE: Check this regex from time to time!
43
+ '/(?=<(fieldset|p)[^>]+class="[^"]*field-move)/',
44
$this->get_fields( $item, $depth, $args ),
45
$item_output
46
);
includes/settings.php CHANGED
@@ -23,7 +23,7 @@ final class Menu_Icons_Settings {
23
*
24
* @since 0.3.0
25
* @var array
26
- * @acess protected
27
*/
28
protected static $defaults = array(
29
'global' => array(
@@ -36,7 +36,7 @@ final class Menu_Icons_Settings {
36
*
37
* @since 0.3.0
38
* @var array
39
- * @acess protected
40
*/
41
protected static $settings = array();
42
@@ -204,7 +204,7 @@ final class Menu_Icons_Settings {
204
check_admin_referer( self::UPDATE_KEY, self::UPDATE_KEY );
205
206
$redirect_url = self::_update_settings( $_POST['menu-icons']['settings'] ); // Input var okay.
207
- wp_redirect( $redirect );
208
} elseif ( ! empty( $_REQUEST[ self::RESET_KEY ] ) ) {
209
check_admin_referer( self::RESET_KEY, self::RESET_KEY );
210
wp_redirect( self::_reset_settings() );
23
*
24
* @since 0.3.0
25
* @var array
26
+ * @access protected
27
*/
28
protected static $defaults = array(
29
'global' => array(
36
*
37
* @since 0.3.0
38
* @var array
39
+ * @access protected
40
*/
41
protected static $settings = array();
42
204
check_admin_referer( self::UPDATE_KEY, self::UPDATE_KEY );
205
206
$redirect_url = self::_update_settings( $_POST['menu-icons']['settings'] ); // Input var okay.
207
+ wp_redirect( $redirect_url );
208
} elseif ( ! empty( $_REQUEST[ self::RESET_KEY ] ) ) {
209
check_admin_referer( self::RESET_KEY, self::RESET_KEY );
210
wp_redirect( self::_reset_settings() );
menu-icons.php CHANGED
@@ -4,14 +4,14 @@
4
* Menu Icons
5
*
6
* @package Menu_Icons
7
- * @version 0.10.1
8
* @author Dzikri Aziz <kvcrvt@gmail.com>
9
*
10
*
11
* Plugin name: Menu Icons
12
* Plugin URI: http://kucrut.org/
13
* Description: Spice up your navigation menus with pretty icons, easily.
14
- * Version: 0.10.1
15
* Author: Dzikri Aziz
16
* Author URI: http://kucrut.org/
17
* License: GPLv2
@@ -25,7 +25,7 @@
25
*/
26
final class Menu_Icons {
27
28
- const version = '0.10.1';
29
30
/**
31
* Holds plugin data
4
* Menu Icons
5
*
6
* @package Menu_Icons
7
+ * @version 0.10.2
8
* @author Dzikri Aziz <kvcrvt@gmail.com>
9
*
10
*
11
* Plugin name: Menu Icons
12
* Plugin URI: http://kucrut.org/
13
* Description: Spice up your navigation menus with pretty icons, easily.
14
+ * Version: 0.10.2
15
* Author: Dzikri Aziz
16
* Author URI: http://kucrut.org/
17
* License: GPLv2
25
*/
26
final class Menu_Icons {
27
28
+ const version = '0.10.2';
29
30
/**
31
* Holds plugin data
readme.txt CHANGED
@@ -1,10 +1,9 @@
1
=== Menu Icons ===
2
- Contributors: kucrut, joshuairl
3
- Donate Link: http://kucrut.org/#coffee
4
Tags: menu, nav-menu, icons, navigation
5
Requires at least: 4.3
6
- Tested up to: 4.5.2
7
- Stable tag: 0.10.1
8
License: GPLv2
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -13,11 +12,10 @@ Spice up your navigation menus with pretty icons, easily.
13
14
== Description ==
15
16
- = Upgrade Note =
17
- Before updating to `0.9.x`, please save the settings by clicking on the *Save* button on the *Menu Icons Settings* meta box. See [screenshot](https://ps.w.org/menu-icons/assets/screenshot-7.png?rev=979807).
18
-
19
This plugin gives you the ability to add icons to your menu items, similar to the look of the latest dashboard menu.
20
21
= Usage =
22
1. After the plugin is activated, go to *Appearance* > *Menus* to edit your menus
23
1. Enable/Disable icon types in "Menu Icons Settings" meta box
@@ -32,6 +30,7 @@ This plugin gives you the ability to add icons to your menu items, similar to th
32
- [Foundation Icons](http://zurb.com/playground/foundation-icon-fonts-3/) by [Zurb](http://zurb.com/)
33
- [Genericons](http://genericons.com/) by [Automattic](http://automattic.com/)
34
- [Fontello](http://fontello.com/) icon packs
35
- Image (attachments)
36
- SVG (attachments)
37
@@ -41,7 +40,12 @@ This plugin gives you the ability to add icons to your menu items, similar to th
41
= Extensions =
42
- [IcoMoon](http://wordpress.org/plugins/menu-icons-icomoon/) by [IcoMoon.io](http://icomoon.io/)
43
44
- Development of this plugin is done on [GitHub](https://github.com/kucrut/wp-menu-icons). **Pull requests welcome**. Please see [issues reported](https://github.com/kucrut/wp-menu-icons/issues) there before going to the plugin forum.
45
46
47
== Screenshots ==
@@ -69,7 +73,7 @@ Make sure that your active theme is using the default walker for displaying the
69
= The icon positions don't look right =
70
If you're comfortable with editing your theme stylesheet, then you can override the styles from there.
71
If you have [Jetpack](http://wordpress.org/plugins/jetpack) installed, you can also use its **Custom CSS** module.
72
- Otherwise, I recommend you to use the [Simple Custom CSS plugin](http://wordpress.org/plugins/simple-custom-css/).
73
74
= Some font icons are not rendering correctly =
75
This is a bug with the font icon itself. When the font is updated, this plugin will update its font too.
@@ -181,7 +185,7 @@ add_filter( 'menu_icons_item_title', 'my_menu_icons_override_markup', 10, 4 );
181
`
182
183
= Can you please add X icon font? =
184
- Let me know via [GitHub issues](https://github.com/kucrut/wp-menu-icons/issues) and I'll see what I can do.
185
186
= How do I disable menu icons for a certain menu? =
187
Add this block of code to your [mu-plugin file](http://codex.wordpress.org/Must_Use_Plugins):
@@ -209,12 +213,14 @@ add_filter( 'menu_icons_menu_settings', 'my_menu_icons_menu_settings', 10, 2 );
209
1. Grab the zip of the pack, extract, and upload it to the newly created directory.
210
1. Enable the icon type from the Settings meta box.
211
212
- https://www.youtube.com/watch?v=B-5AVwgPaiw
213
214
= I can't select a custom image size from the *Image Size* dropdown =
215
Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/).
216
217
== Changelog ==
218
= 0.10.1 =
219
* Support RTL, props [ybspost](https://wordpress.org/support/profile/ybspost).
220
1
=== Menu Icons ===
2
+ Contributors: kucrut, joshuairl,codeinwp, themeisle
3
Tags: menu, nav-menu, icons, navigation
4
Requires at least: 4.3
5
+ Tested up to: 4.9
6
+ Stable tag: 0.10.2
7
License: GPLv2
8
License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
12
13
== Description ==
14
15
This plugin gives you the ability to add icons to your menu items, similar to the look of the latest dashboard menu.
16
17
+ https://www.youtube.com/watch?v=YcSotWXIczI
18
+
19
= Usage =
20
1. After the plugin is activated, go to *Appearance* > *Menus* to edit your menus
21
1. Enable/Disable icon types in "Menu Icons Settings" meta box
30
- [Foundation Icons](http://zurb.com/playground/foundation-icon-fonts-3/) by [Zurb](http://zurb.com/)
31
- [Genericons](http://genericons.com/) by [Automattic](http://automattic.com/)
32
- [Fontello](http://fontello.com/) icon packs
33
+ - [TI Icons](http://themeisle.com/free-icons/) icon pack by [ThemeIsle](http://twitter.com/themeisle)
34
- Image (attachments)
35
- SVG (attachments)
36
40
= Extensions =
41
- [IcoMoon](http://wordpress.org/plugins/menu-icons-icomoon/) by [IcoMoon.io](http://icomoon.io/)
42
43
+ = Compatible themes =
44
+ Menu icons works with most of the themes out there, especially with popular ones like Twenty Seventeen or [Hestia](https://themeisle.com/themes/hestia/).
45
+
46
+ Development of this plugin is done on [GitHub](https://github.com/codeinwp/wp-menu-icons). **Pull requests welcome**. Please see [issues reported](https://github.com/codeinwp/wp-menu-icons/issues) there before going to the plugin forum.
47
+
48
+
49
50
51
== Screenshots ==
73
= The icon positions don't look right =
74
If you're comfortable with editing your theme stylesheet, then you can override the styles from there.
75
If you have [Jetpack](http://wordpress.org/plugins/jetpack) installed, you can also use its **Custom CSS** module.
76
+ Otherwise, I recommend you to use the [Advanced CSS plugin](https://wordpress.org/plugins/advanced-css-editor/).
77
78
= Some font icons are not rendering correctly =
79
This is a bug with the font icon itself. When the font is updated, this plugin will update its font too.
185
`
186
187
= Can you please add X icon font? =
188
+ Let me know via [GitHub issues](https://github.com/codeinw/wp-menu-icons/issues) and I'll see what I can do.
189
190
= How do I disable menu icons for a certain menu? =
191
Add this block of code to your [mu-plugin file](http://codex.wordpress.org/Must_Use_Plugins):
213
1. Grab the zip of the pack, extract, and upload it to the newly created directory.
214
1. Enable the icon type from the Settings meta box.
215
216
217
= I can't select a custom image size from the *Image Size* dropdown =
218
Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/).
219
220
== Changelog ==
221
+ = 0.10.2 =
222
+ * Compatibility with WordPress 4.7.0, props [Aaron K](https://github.com/aaronkirkham).
223
+
224
= 0.10.1 =
225
* Support RTL, props [ybspost](https://wordpress.org/support/profile/ybspost).
226