Changeset 13217
- Timestamp:
- 02/19/2010 10:26:44 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r12987 r13217 98 98 $label = isset($taxonomy->label) ? esc_attr($taxonomy->label) : $tax_name; 99 99 100 if ( !current_user_can($taxonomy->manage_cap) )101 continue;102 103 100 if ( !is_taxonomy_hierarchical($tax_name) ) 104 101 add_meta_box('tagsdiv-' . $tax_name, $label, 'post_tags_meta_box', $post_type, 'side', 'core'); -
trunk/wp-admin/menu.php
r13216 r13217 61 61 continue; 62 62 63 $submenu['edit.php'][$i++] = array( esc_attr($tax->label), 'manage_categories', 'edit-tags.php?taxonomy=' . $tax->name );63 $submenu['edit.php'][$i++] = array( esc_attr($tax->label), $tax->manage_cap, 'edit-tags.php?taxonomy=' . $tax->name ); 64 64 } 65 65 unset($tax); … … 98 98 continue; 99 99 100 $submenu["edit.php?post_type=$ptype"][$i++] = array( esc_attr($tax->label), 'manage_categories', "edit-tags.php?taxonomy=$tax->name&post_type=$ptype" );100 $submenu["edit.php?post_type=$ptype"][$i++] = array( esc_attr($tax->label), $tax->manage_cap, "edit-tags.php?taxonomy=$tax->name&post_type=$ptype" ); 101 101 } 102 102 } -
trunk/wp-includes/post.php
r13209 r13217 2175 2175 // new-style support for all tag-like taxonomies 2176 2176 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 } 2179 2182 } 2180 2183
Note: See TracChangeset
for help on using the changeset viewer.