mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Hide add cat if user does not have mange_categories cap. Props Mark Jaquith. fixes #2432
git-svn-id: http://svn.automattic.com/wordpress/trunk@3516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
30bb2362e2
commit
17b47c6fe0
@ -3,6 +3,7 @@
|
|||||||
if (!isset($_GET["page"])) require_once('admin.php');
|
if (!isset($_GET["page"])) require_once('admin.php');
|
||||||
if ( $editing ) {
|
if ( $editing ) {
|
||||||
$dbx_js = true;
|
$dbx_js = true;
|
||||||
|
if ( current_user_can('manage_categories') )
|
||||||
$cat_js = true;
|
$cat_js = true;
|
||||||
}
|
}
|
||||||
if ( $list_js || $cat_js )
|
if ( $list_js || $cat_js )
|
||||||
|
Loading…
Reference in New Issue
Block a user