Make WordPress Core

Changeset 3516


Ignore:
Timestamp:
02/12/2006 07:46:34 AM (19 years ago)
Author:
ryan
Message:

Hide add cat if user does not have mange_categories cap. Props Mark Jaquith. fixes #2432

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r3432 r3516  
    44if ( $editing ) {
    55    $dbx_js = true;
    6     $cat_js = true;
     6    if ( current_user_can('manage_categories') )
     7        $cat_js = true;
    78}
    89if ( $list_js || $cat_js )
Note: See TracChangeset for help on using the changeset viewer.