Changeset 23742 for trunk/wp-admin/includes/post.php
- Timestamp:
- 03/18/2013 05:24:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r23735 r23742 353 353 } 354 354 355 if ( isset( $post_data['post_format'] ) ) {356 if ( '0' == $post_data['post_format'] )357 $post_data['post_format'] = false;358 // don't change the post format if it's not supported or not '0' (standard)359 elseif ( ! current_theme_supports( 'post-formats', $post_data['post_format'] ) )360 unset( $post_data['post_format'] );361 }362 363 355 $updated = $skipped = $locked = array(); 364 356 foreach ( $post_IDs as $post_ID ) { … … 410 402 unstick_post( $post_ID ); 411 403 } 412 413 if ( isset( $post_data['post_format'] ) )414 set_post_format( $post_ID, $post_data['post_format'] );415 404 } 416 405
Note: See TracChangeset
for help on using the changeset viewer.