Make WordPress Core

Changeset 18369


Ignore:
Timestamp:
06/28/2011 09:47:35 PM (13 years ago)
Author:
ryan
Message:

Block editing of post_mime_type and guid in bulk_edit_posts(). More filter unsets. For trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r18346 r18369  
    144144
    145145    // Clear out any data in internal vars.
    146     if ( isset( $post_data['filter'] ) )
    147         unset( $post_data['filter'] );
     146    unset( $post_data['filter'] );
    148147
    149148    $post_ID = (int) $post_data['post_ID'];
     
    353352        }
    354353
    355         $tax_names = get_object_taxonomies( get_post($post_ID) );
     354        $post = get_post( $post_ID );
     355        $tax_names = get_object_taxonomies( $post );
    356356        foreach ( $tax_names as $tax_name ) {
    357357            $taxonomy_obj = get_taxonomy($tax_name);
     
    374374            unset( $post_data['tax_input']['category'] );
    375375        }
     376
     377        $post_data['post_mime_type'] = $post->post_mime_type;
     378        $post_data['guid'] = $post->guid;
    376379
    377380        $post_data['ID'] = $post_ID;
     
    545548
    546549    $_POST['post_mime_type'] = '';
     550
     551    // Clear out any data in internal vars.
     552    unset( $_POST['filter'] );
    547553
    548554    // Check for autosave collisions
Note: See TracChangeset for help on using the changeset viewer.