Version Description
- Reduce number of parameters passed to
add_action_links
filter
Download this release
Release Info
Developer | helgatheviking |
Plugin | Nav Menu Roles |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- nav-menu-roles.php +4 -4
- readme.txt +4 -1
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.
|
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.
|
58 |
|
59 |
/**
|
60 |
* Main Nav Menu Roles Instance
|
@@ -106,7 +106,7 @@ class Nav_Menu_Roles {
|
|
106 |
add_action( 'plugins_loaded', array( $this, 'load_text_domain' ) );
|
107 |
|
108 |
// add FAQ and Donate link to plugin
|
109 |
-
add_filter( 'plugin_row_meta', array( $this, 'add_action_links' ), 10,
|
110 |
|
111 |
// switch the admin walker
|
112 |
add_filter( 'wp_edit_nav_menu_walker', array( $this, 'edit_nav_menu_walker' ) );
|
@@ -222,7 +222,7 @@ class Nav_Menu_Roles {
|
|
222 |
* Add docu link
|
223 |
* @since 1.7.3
|
224 |
*/
|
225 |
-
public function add_action_links( $plugin_meta, $plugin_file
|
226 |
if( $plugin_file == plugin_basename(__FILE__) ){
|
227 |
$plugin_meta[] = sprintf( '<a class="dashicons-before dashicons-welcome-learn-more" href="https://wordpress.org/plugins/nav-menu-roles/faq/#conflict">%s</a>', __( 'FAQ', 'nav-menu-roles' ) );
|
228 |
$plugin_meta[] = '<a class="dashicons-before dashicons-awards" href="' . self::DONATE_URL . '" target="_blank">' . __( 'Donate', 'nav-menu-roles' ) . '</a>';
|
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 |
* @constant string version number
|
55 |
* @since 1.7.1
|
56 |
*/
|
57 |
+
CONST VERSION = '1.8.2';
|
58 |
|
59 |
/**
|
60 |
* Main Nav Menu Roles Instance
|
106 |
add_action( 'plugins_loaded', array( $this, 'load_text_domain' ) );
|
107 |
|
108 |
// add FAQ and Donate link to plugin
|
109 |
+
add_filter( 'plugin_row_meta', array( $this, 'add_action_links' ), 10, 2 );
|
110 |
|
111 |
// switch the admin walker
|
112 |
add_filter( 'wp_edit_nav_menu_walker', array( $this, 'edit_nav_menu_walker' ) );
|
222 |
* Add docu link
|
223 |
* @since 1.7.3
|
224 |
*/
|
225 |
+
public function add_action_links( $plugin_meta, $plugin_file ) {
|
226 |
if( $plugin_file == plugin_basename(__FILE__) ){
|
227 |
$plugin_meta[] = sprintf( '<a class="dashicons-before dashicons-welcome-learn-more" href="https://wordpress.org/plugins/nav-menu-roles/faq/#conflict">%s</a>', __( 'FAQ', 'nav-menu-roles' ) );
|
228 |
$plugin_meta[] = '<a class="dashicons-before dashicons-awards" href="' . self::DONATE_URL . '" target="_blank">' . __( 'Donate', 'nav-menu-roles' ) . '</a>';
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ 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.
|
9 |
License: GPLv3
|
10 |
|
11 |
Hide custom menu items based on user roles. PLEASE READ THE FAQ IF YOU ARE NOT SEEING THE SETTINGS.
|
@@ -199,6 +199,9 @@ However, the Import plugin only imports certain post meta for menu items. As of
|
|
199 |
|
200 |
== Changelog ==
|
201 |
|
|
|
|
|
|
|
202 |
= 1.8.1 =
|
203 |
* Switch input names to use a counter [nav-menu-role][100][1]. For some reason [nav-menu-role][100][] doesn't post an array and hypenated names [nav-menu-role][100][gold-plan] wreak havoc on the save routine. Shouldn't impact anyone not using hyphenated role names.
|
204 |
|
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.
|
199 |
|
200 |
== Changelog ==
|
201 |
|
202 |
+
= 1.8.2 =
|
203 |
+
* Reduce number of parameters passed to `add_action_links` filter
|
204 |
+
|
205 |
= 1.8.1 =
|
206 |
* Switch input names to use a counter [nav-menu-role][100][1]. For some reason [nav-menu-role][100][] doesn't post an array and hypenated names [nav-menu-role][100][gold-plan] wreak havoc on the save routine. Shouldn't impact anyone not using hyphenated role names.
|
207 |
|