WordPress.org

Make WordPress Core

Changeset 9574


Ignore:
Timestamp:
11/08/08 23:10:31 (6 years ago)
Author:
ryan
Message:

Don't show category adder to users without manage_categories cap. fixes #8114

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r9564 r9574  
    267267</div> 
    268268 
     269<?php if ( current_user_can('manage_categories') ) : ?> 
    269270<div id="category-adder" class="wp-hidden-children"> 
    270271    <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4> 
     
    277278    </p> 
    278279</div> 
    279  
    280 <?php 
     280<?php 
     281endif; 
     282 
    281283} 
    282284add_meta_box('categorydiv', __('Categories'), 'post_categories_meta_box', 'post', 'side', 'core'); 
Note: See TracChangeset for help on using the changeset viewer.