Hide add cat if user does not have mange_categories cap. Props Mark Jaquith. fixes #2432
git-svn-id: https://develop.svn.wordpress.org/trunk@3516 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1f6ae7587d
commit
48dc264515
@ -3,7 +3,8 @@
|
||||
if (!isset($_GET["page"])) require_once('admin.php');
|
||||
if ( $editing ) {
|
||||
$dbx_js = true;
|
||||
$cat_js = true;
|
||||
if ( current_user_can('manage_categories') )
|
||||
$cat_js = true;
|
||||
}
|
||||
if ( $list_js || $cat_js )
|
||||
$sack_js = true;
|
||||
|
Loading…
Reference in New Issue
Block a user