Unset menu_perms once we're done with it. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12844 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8dd260e7cf
commit
e98eb23a38
@ -113,6 +113,7 @@ if ( is_super_admin() || ( is_multisite() && isset($menu_perms['plugins']) && $m
|
||||
if ( !is_multisite() )
|
||||
$submenu['plugins.php'][15] = array( _x('Editor', 'plugin editor'), 'edit_plugins', 'plugin-editor.php' );
|
||||
}
|
||||
unset($menu_perms);
|
||||
|
||||
if ( current_user_can('edit_users') )
|
||||
$menu[70] = array( __('Users'), 'edit_users', 'users.php', '', 'menu-top', 'menu-users', 'div' );
|
||||
|
Loading…
Reference in New Issue
Block a user