Version Description
Download this release
Release Info
Developer | danieliser |
Plugin | User Menus – Nav Menu Visibility |
Version | 1.2.7 |
Comparing to | |
See all releases |
Code changes from version 1.2.6 to 1.2.7
- includes/classes/site/menus.php +2 -1
- readme.txt +5 -1
- user-menus.php +2 -2
includes/classes/site/menus.php
CHANGED
@@ -40,7 +40,8 @@ class Menus {
|
|
40 |
$excluded = [];
|
41 |
|
42 |
foreach ( $items as $key => $item ) {
|
43 |
-
|
|
|
44 |
|
45 |
if ( 'logout' === $item->object ) {
|
46 |
$exclude = ! $logged_in;
|
40 |
$excluded = [];
|
41 |
|
42 |
foreach ( $items as $key => $item ) {
|
43 |
+
// Exclude menu items that are children of excluded items.
|
44 |
+
$exclude = in_array( (int) $item->menu_item_parent, $excluded, true );
|
45 |
|
46 |
if ( 'logout' === $item->object ) {
|
47 |
$exclude = ! $logged_in;
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Donate link: https://code-atlantic.com/donate/
|
|
6 |
Tags: menu, menus, user-menu, logout, nav-menu, nav-menus, user, user-role, user-roles
|
7 |
Requires at least: 4.6
|
8 |
Tested up to: 5.8
|
9 |
-
Stable tag: 1.2.
|
10 |
Requires PHP: 5.6
|
11 |
Freemius: 2.4.2
|
12 |
License: GPLv3 or Any Later Version
|
@@ -108,6 +108,10 @@ Bugs can be reported either in our support forum or preferably on the [User Menu
|
|
108 |
|
109 |
== Changelog ==
|
110 |
|
|
|
|
|
|
|
|
|
111 |
= v1.2.6 - 07/20/2021 =
|
112 |
|
113 |
* Improvement: Update Freemius to 2.4.2
|
6 |
Tags: menu, menus, user-menu, logout, nav-menu, nav-menus, user, user-role, user-roles
|
7 |
Requires at least: 4.6
|
8 |
Tested up to: 5.8
|
9 |
+
Stable tag: 1.2.7
|
10 |
Requires PHP: 5.6
|
11 |
Freemius: 2.4.2
|
12 |
License: GPLv3 or Any Later Version
|
108 |
|
109 |
== Changelog ==
|
110 |
|
111 |
+
= v1.2.7 - 07/21/2021 =
|
112 |
+
|
113 |
+
* Fix: Bug due to variable type mismatch which caused children of protected items to be rendered.
|
114 |
+
|
115 |
= v1.2.6 - 07/20/2021 =
|
116 |
|
117 |
* Improvement: Update Freemius to 2.4.2
|
user-menus.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: User Menus
|
4 |
* Plugin URI: https://wordpress.org/plugins/user-menus/
|
5 |
* Description: Quickly customize your menus with a user's name & avatar, or show items based on user role.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Code Atlantic
|
8 |
* Author URI: https://code-atlantic.com/
|
9 |
* License: GPL2 or later
|
@@ -83,7 +83,7 @@ class JP_User_Menus {
|
|
83 |
*
|
84 |
* @var string
|
85 |
*/
|
86 |
-
public static $VER = '1.2.
|
87 |
|
88 |
/**
|
89 |
* Minimum PHP version
|
3 |
* Plugin Name: User Menus
|
4 |
* Plugin URI: https://wordpress.org/plugins/user-menus/
|
5 |
* Description: Quickly customize your menus with a user's name & avatar, or show items based on user role.
|
6 |
+
* Version: 1.2.7
|
7 |
* Author: Code Atlantic
|
8 |
* Author URI: https://code-atlantic.com/
|
9 |
* License: GPL2 or later
|
83 |
*
|
84 |
* @var string
|
85 |
*/
|
86 |
+
public static $VER = '1.2.7';
|
87 |
|
88 |
/**
|
89 |
* Minimum PHP version
|