Changeset 18722 for trunk/wp-admin/includes/post.php
- Timestamp:
- 09/19/2011 05:02:58 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r18721 r18722 308 308 if ( empty($terms) ) 309 309 continue; 310 if ( is_taxonomy_hierarchical( $tax_name ) ) 310 if ( is_taxonomy_hierarchical( $tax_name ) ) { 311 311 $tax_input[$tax_name] = array_map( 'absint', $terms ); 312 else {312 } else { 313 313 $tax_input[$tax_name] = preg_replace( '/\s*,\s*/', ',', rtrim( trim($terms), ' ,' ) ); 314 314 $tax_input[$tax_name] = explode(',', $tax_input[$tax_name]); … … 331 331 } 332 332 } 333 } 334 335 if ( isset( $post_data['post_format'] ) ) { 336 if ( '0' == $post_data['post_format'] ) 337 $post_data['post_format'] = false; 338 // don't change the post format if it's not supported or not '0' (standard) 339 elseif ( ! current_theme_supports( 'post-formats', $post_data['post_format'] ) ) 340 unset( $post_data['post_format'] ); 333 341 } 334 342 … … 383 391 } 384 392 393 if ( isset( $post_data['post_format'] ) ) 394 set_post_format( $post_ID, $post_data['post_format'] ); 385 395 } 386 396
Note: See TracChangeset
for help on using the changeset viewer.