Changeset 37784
- Timestamp:
- 06/21/2016 02:21:53 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.9/src/wp-admin/includes/post.php
r33546 r37784 164 164 } 165 165 $post_data['post_date_gmt'] = get_gmt_from_date( $post_data['post_date'] ); 166 } 167 168 if ( isset( $post_data['post_category'] ) ) { 169 $category_object = get_taxonomy( 'category' ); 170 if ( ! current_user_can( $category_object->cap->assign_terms ) ) { 171 unset( $post_data['post_category'] ); 172 } 166 173 } 167 174
Note: See TracChangeset
for help on using the changeset viewer.