Make WordPress Core


Ignore:
Timestamp:
02/22/2010 08:36:32 AM (15 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-includes/post.php

    r13284 r13289  
    21862186        foreach ( $tax_input as $taxonomy => $tags ) {
    21872187            $taxonomy_obj = get_taxonomy($taxonomy);
    2188             if ( current_user_can($taxonomy_obj->manage_cap) )
     2188            if ( current_user_can($taxonomy_obj->assign_cap) )
    21892189                wp_set_post_terms( $post_ID, $tags, $taxonomy );
    21902190        }
Note: See TracChangeset for help on using the changeset viewer.