Make WordPress Core


Ignore:
Timestamp:
02/22/2010 08:36:32 AM (16 years ago)
Author:
dd32
Message:

Introduce assign_cap for Taxonomies, Defaults to 'edit_posts'. Allows for Authors/Contributors to tag/categorise their posts. See #12035

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/meta-boxes.php

    r13285 r13289  
    248248    $tax_name = esc_attr(substr($box['id'], 8));
    249249    $taxonomy = get_taxonomy($tax_name);
    250     if ( !current_user_can($taxonomy->manage_cap) ) // @todo: Display the terms, do not edit.
     250    if ( !current_user_can($taxonomy->assign_cap) ) // @todo: Display the terms, do not edit.
    251251        return;
    252252    $helps = isset($taxonomy->helps) ? esc_attr($taxonomy->helps) : __('Separate tags with commas.');
Note: See TracChangeset for help on using the changeset viewer.