Make WordPress Core


Ignore:
Timestamp:
02/19/2010 10:26:44 AM (14 years ago)
Author:
dd32
Message:

More Taxonomy cap checks. See #12035

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r13209 r13217  
    21752175    // new-style support for all tag-like taxonomies
    21762176    if ( !empty($tax_input) ) {
    2177         foreach ( $tax_input as $taxonomy => $tags )
    2178             wp_set_post_terms( $post_ID, $tags, $taxonomy );
     2177        foreach ( $tax_input as $taxonomy => $tags ) {
     2178            $taxonomy_obj = get_taxonomy($taxonomy);
     2179            if ( current_user_can($taxonomy_obj->manage_cap) )
     2180                wp_set_post_terms( $post_ID, $tags, $taxonomy );
     2181        }
    21792182    }
    21802183
Note: See TracChangeset for help on using the changeset viewer.