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/admin-ajax.php

    r13285 r13289  
    209209    $taxonomy = get_taxonomy(substr($action, 4));
    210210    check_ajax_referer( $action );
    211     if ( !current_user_can( $taxonomy->manage_cap ) )
     211    if ( !current_user_can( $taxonomy->edit_cap ) )
    212212        die('-1');
    213213    $names = explode(',', $_POST['new'.$taxonomy->name]);
Note: See TracChangeset for help on using the changeset viewer.