From b0955e263cdb16f65e614181501139311d445d62 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 19 Feb 2006 10:52:03 +0000 Subject: [PATCH] Hide add cat if user does not have mange_categories cap. Props Mark Jaquith. fixes #2432 git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3553 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-header.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index ec05aa0773..b994f7c523 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -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;