Nav Menu Roles - Version 1.8.3

Version Description

  • Remove deprecated screen_icon()
Download this release

Release Info

Developer deployer
Plugin Icon 128x128 Nav Menu Roles
Version 1.8.3
Comparing to
See all releases

Code changes from version 1.8.2 to 1.8.3

assets/screenshot-1.jpg DELETED
Binary file
inc/class.Nav_Menu_Roles_Import.php CHANGED
@@ -246,7 +246,6 @@ if ( class_exists( 'WP_Importer' ) && ! class_exists( 'Nav_Menu_Roles_Import' )
246
  // Display import page title
247
  function header() {
248
  echo '<div class="wrap">';
249
- screen_icon();
250
  echo '<h2>' . __( 'Import Nav Menu Roles', 'nav-menu-roles' ) . '</h2>';
251
 
252
  $updates = get_plugin_updates();
246
  // Display import page title
247
  function header() {
248
  echo '<div class="wrap">';
 
249
  echo '<h2>' . __( 'Import Nav Menu Roles', 'nav-menu-roles' ) . '</h2>';
250
 
251
  $updates = get_plugin_updates();
languages/nav-menu-roles.pot CHANGED
@@ -2,16 +2,16 @@
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Nav Menu Roles 1.8.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/nav-menu-roles\n"
7
- "POT-Creation-Date: 2016-05-04 14:17:56+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
- "X-Generator: grunt-wp-i18n 0.5.3\n"
15
 
16
  #: inc/class.Nav_Menu_Roles_Import.php:106
17
  #: inc/class.Nav_Menu_Roles_Import.php:115
@@ -45,24 +45,24 @@ msgid ""
45
  "importer. Please consider updating."
46
  msgstr ""
47
 
48
- #: inc/class.Nav_Menu_Roles_Import.php:250
49
  msgid "Import Nav Menu Roles"
50
  msgstr ""
51
 
52
- #: inc/class.Nav_Menu_Roles_Import.php:257
53
  msgid ""
54
  "A new version of this importer is available. Please update to version %s to "
55
  "ensure compatibility with newer export files."
56
  msgstr ""
57
 
58
- #: inc/class.Nav_Menu_Roles_Import.php:272
59
  msgid ""
60
  "Re-Upload your normal WordPress eXtended RSS (WXR) file and we&#8217;ll "
61
  "import the Nav Menu Roles and any other missing post meta for the Nav Menu "
62
  "items."
63
  msgstr ""
64
 
65
- #: inc/class.Nav_Menu_Roles_Import.php:273
66
  msgid "Choose a WXR (.xml) file to upload, then click Upload file and import."
67
  msgstr ""
68
 
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Nav Menu Roles 1.8.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/nav-menu-roles\n"
7
+ "POT-Creation-Date: 2016-08-17 02:50:28+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "X-Generator: grunt-wp-i18n 0.5.4\n"
15
 
16
  #: inc/class.Nav_Menu_Roles_Import.php:106
17
  #: inc/class.Nav_Menu_Roles_Import.php:115
45
  "importer. Please consider updating."
46
  msgstr ""
47
 
48
+ #: inc/class.Nav_Menu_Roles_Import.php:249
49
  msgid "Import Nav Menu Roles"
50
  msgstr ""
51
 
52
+ #: inc/class.Nav_Menu_Roles_Import.php:256
53
  msgid ""
54
  "A new version of this importer is available. Please update to version %s to "
55
  "ensure compatibility with newer export files."
56
  msgstr ""
57
 
58
+ #: inc/class.Nav_Menu_Roles_Import.php:271
59
  msgid ""
60
  "Re-Upload your normal WordPress eXtended RSS (WXR) file and we&#8217;ll "
61
  "import the Nav Menu Roles and any other missing post meta for the Nav Menu "
62
  "items."
63
  msgstr ""
64
 
65
+ #: inc/class.Nav_Menu_Roles_Import.php:272
66
  msgid "Choose a WXR (.xml) file to upload, then click Upload file and import."
67
  msgstr ""
68
 
nav-menu-roles.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Nav Menu Roles
4
  Plugin URI: http://www.kathyisawesome.com/449/nav-menu-roles/
5
  Description: Hide custom menu items based on user roles.
6
- Version: 1.8.2
7
  Author: Kathy Darling
8
  Author URI: http://www.kathyisawesome.com
9
  License: GPL2
@@ -54,7 +54,7 @@ class Nav_Menu_Roles {
54
  * @constant string version number
55
  * @since 1.7.1
56
  */
57
- CONST VERSION = '1.8.2';
58
 
59
  /**
60
  * Main Nav Menu Roles Instance
3
  Plugin Name: Nav Menu Roles
4
  Plugin URI: http://www.kathyisawesome.com/449/nav-menu-roles/
5
  Description: Hide custom menu items based on user roles.
6
+ Version: 1.8.3
7
  Author: Kathy Darling
8
  Author URI: http://www.kathyisawesome.com
9
  License: GPL2
54
  * @constant string version number
55
  * @since 1.7.1
56
  */
57
+ CONST VERSION = '1.8.3';
58
 
59
  /**
60
  * Main Nav Menu Roles Instance
readme.txt CHANGED
@@ -4,8 +4,8 @@ Contributors: helgatheviking
4
  Donate link: https://www.paypal.me/helgatheviking
5
  Tags: menu, menus, nav menu, nav menus
6
  Requires at least: 4.5.0
7
- Tested up to: 4.5.1
8
- Stable tag: 1.8.2
9
  License: GPLv3
10
 
11
  Hide custom menu items based on user roles. PLEASE READ THE FAQ IF YOU ARE NOT SEEING THE SETTINGS.
@@ -54,7 +54,7 @@ WordPress does not have sufficient hooks in this area of the admin and until the
54
 
55
  **A non-exhaustive list of known conflicts:**
56
 
57
- 1. UberMenu 2.x Mega Menus plugin
58
  2. Add Descendants As Submenu Items plugin
59
  3. Navception plugin
60
  4. Suffusion theme
@@ -63,6 +63,7 @@ WordPress does not have sufficient hooks in this area of the admin and until the
63
  7. Jupiter Theme
64
  8. iMedica theme
65
  9. Prostyler EVO theme
 
66
 
67
 
68
  = <a id="compatibility"></a>Workaround #1 =
@@ -123,6 +124,10 @@ do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
123
 
124
  As a workaround, you can switch to a default theme (or disable the conflicting plugin), edit the Nav Menu Roles, for each menu item, then revert to your original theme/ reenable the conflicting plugin. The front-end functionality of Nav Menu Roles will still work.
125
 
 
 
 
 
126
  = I'm using XYZ Membership plugin and I don't see its "levels"? =
127
 
128
  There are apparently a few membership plugins out there that *don't* use traditional WordPress roles/capabilities. My plugin will list any role registered in the traditional WordPress way. If your membership plugin is using some other system, then Nav Menu Roles won't work with it out of the box. Since 1.3.5 I've added a filter called `nav_menu_roles_item_visibility` just before my code decides whether to show/hide a menu item. There's also always been the `nav_menu_roles` filter which lets you modify the roles listed in the admin. Between these two, I believe you have enough to integrate Nav Menu Roles with any membership plugin.
@@ -199,6 +204,12 @@ However, the Import plugin only imports certain post meta for menu items. As of
199
 
200
  == Changelog ==
201
 
 
 
 
 
 
 
202
  = 1.8.2 =
203
  * Reduce number of parameters passed to `add_action_links` filter
204
 
4
  Donate link: https://www.paypal.me/helgatheviking
5
  Tags: menu, menus, nav menu, nav menus
6
  Requires at least: 4.5.0
7
+ Tested up to: 4.7.0
8
+ Stable tag: 1.8.4
9
  License: GPLv3
10
 
11
  Hide custom menu items based on user roles. PLEASE READ THE FAQ IF YOU ARE NOT SEEING THE SETTINGS.
54
 
55
  **A non-exhaustive list of known conflicts:**
56
 
57
+ 1. UberMenu 2.x Mega Menus plugin (UberMenu 3.x supports NMR!)
58
  2. Add Descendants As Submenu Items plugin
59
  3. Navception plugin
60
  4. Suffusion theme
63
  7. Jupiter Theme
64
  8. iMedica theme
65
  9. Prostyler EVO theme
66
+ 10. Mega Main Plugin
67
 
68
 
69
  = <a id="compatibility"></a>Workaround #1 =
124
 
125
  As a workaround, you can switch to a default theme (or disable the conflicting plugin), edit the Nav Menu Roles, for each menu item, then revert to your original theme/ reenable the conflicting plugin. The front-end functionality of Nav Menu Roles will still work.
126
 
127
+ = Workaround #3 =
128
+
129
+ Download and install this [tiny plugin](https://gist.github.com/helgatheviking/d00f9c033a4b0aab0f69cf50d7dcd89c). Activate it when you need to make the NMR options appear and then disable it when you are done editing.
130
+
131
  = I'm using XYZ Membership plugin and I don't see its "levels"? =
132
 
133
  There are apparently a few membership plugins out there that *don't* use traditional WordPress roles/capabilities. My plugin will list any role registered in the traditional WordPress way. If your membership plugin is using some other system, then Nav Menu Roles won't work with it out of the box. Since 1.3.5 I've added a filter called `nav_menu_roles_item_visibility` just before my code decides whether to show/hide a menu item. There's also always been the `nav_menu_roles` filter which lets you modify the roles listed in the admin. Between these two, I believe you have enough to integrate Nav Menu Roles with any membership plugin.
204
 
205
  == Changelog ==
206
 
207
+ = 1.8.4 =
208
+ * Prevent nav menu items edited in the customizer from rendering when they should be excluded
209
+
210
+ = 1.8.3 =
211
+ * Remove deprecated screen_icon()
212
+
213
  = 1.8.2 =
214
  * Reduce number of parameters passed to `add_action_links` filter
215