WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/13/2010 04:10:17 AM (12 years ago)
Author:
nacin
Message:

Move taxonomy object properties for capabilities into a cap object. Capabilities can be specified via capabilities? (an array keyed by the generic cap name) for register_taxonomy. fixes #13358.

File:
1 edited

Legend:

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

    r14315 r14593  
    3434$tags = get_taxonomy('post_tag');
    3535
    36 if ( current_user_can($cats->manage_cap) || current_user_can($tags->manage_cap) ) : ?>
     36if ( current_user_can($cats->cap->manage_terms) || current_user_can($tags->cap->manage_terms) ) : ?>
    3737<div class="tool-box">
    3838    <h3 class="title"><?php _e('Category&#47;Tag Conversion') ?></h3>
Note: See TracChangeset for help on using the changeset viewer.