Changeset 38118 for trunk/src/wp-includes/post.php
- Timestamp:
- 07/20/2016 04:23:36 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r38076 r38118 3261 3261 } 3262 3262 3263 // Set or remove featured image. 3264 if ( isset( $postarr['_thumbnail_id'] ) && ( post_type_supports( $post_type, 'thumbnail' ) || 'revision' === $post_type ) ) { 3265 $thumbnail_id = intval( $postarr['_thumbnail_id'] ); 3266 if ( -1 === $thumbnail_id ) { 3267 delete_post_thumbnail( $post_ID ); 3268 } else { 3269 set_post_thumbnail( $post_ID, $thumbnail_id ); 3270 } 3271 } 3272 3263 3273 if ( ! empty( $postarr['meta_input'] ) ) { 3264 3274 foreach ( $postarr['meta_input'] as $field => $value ) {
Note: See TracChangeset
for help on using the changeset viewer.