mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
Unset menu_perms once we're done with it. see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7991402038
commit
943f69cb1f
@ -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