Require manage_options cap to access Options menu.
git-svn-id: https://develop.svn.wordpress.org/trunk@3185 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a600bbf61c
commit
73997ea8ae
@ -14,7 +14,7 @@ if ( current_user_can('edit_users') )
|
||||
$menu[35] = array(__('Users'), 'read', 'profile.php');
|
||||
else
|
||||
$menu[35] = array(__('Profile'), 'read', 'profile.php');
|
||||
$menu[40] = array(__('Options'), 'read', 'options-general.php');
|
||||
$menu[40] = array(__('Options'), 'manage_options', 'options-general.php');
|
||||
$menu[45] = array(__('Import'), 'import', 'import.php');
|
||||
|
||||
$submenu['post.php'][5] = array(__('Write Post'), 'edit_posts', 'post.php');
|
||||
|
Loading…
Reference in New Issue
Block a user