Make WordPress Core

Ticket #2432: hide_add_cat_if_user_cannot_add_cats.diff

File hide_add_cat_if_user_cannot_add_cats.diff, 434 bytes (added by markjaquith, 18 years ago)

Patch for current SVN

  • wp-admin/admin-header.php

     
    33if (!isset($_GET["page"])) require_once('admin.php');
    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 )
    910        $sack_js = true;