Changeset 18369
- Timestamp:
- 06/28/2011 09:47:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r18346 r18369 144 144 145 145 // Clear out any data in internal vars. 146 if ( isset( $post_data['filter'] ) ) 147 unset( $post_data['filter'] ); 146 unset( $post_data['filter'] ); 148 147 149 148 $post_ID = (int) $post_data['post_ID']; … … 353 352 } 354 353 355 $tax_names = get_object_taxonomies( get_post($post_ID) ); 354 $post = get_post( $post_ID ); 355 $tax_names = get_object_taxonomies( $post ); 356 356 foreach ( $tax_names as $tax_name ) { 357 357 $taxonomy_obj = get_taxonomy($tax_name); … … 374 374 unset( $post_data['tax_input']['category'] ); 375 375 } 376 377 $post_data['post_mime_type'] = $post->post_mime_type; 378 $post_data['guid'] = $post->guid; 376 379 377 380 $post_data['ID'] = $post_ID; … … 545 548 546 549 $_POST['post_mime_type'] = ''; 550 551 // Clear out any data in internal vars. 552 unset( $_POST['filter'] ); 547 553 548 554 // Check for autosave collisions
Note: See TracChangeset
for help on using the changeset viewer.