Make WordPress Core

Changeset 18370 for branches/3.1


Ignore:
Timestamp:
06/28/2011 09:48:14 PM (15 years ago)
Author:
ryan
Message:

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

Location:
branches/3.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1

  • branches/3.1/wp-admin/includes/post.php

    r18356 r18370  
    137137
    138138    // Clear out any data in internal vars.
    139     if ( isset( $post_data['filter'] ) )
    140         unset( $post_data['filter'] );
     139    unset( $post_data['filter'] );
    141140
    142141    $post_ID = (int) $post_data['post_ID'];
     
    346345        }
    347346
    348         $tax_names = get_object_taxonomies( get_post($post_ID) );
     347        $post = get_post( $post_ID );
     348        $tax_names = get_object_taxonomies( $post );
    349349        foreach ( $tax_names as $tax_name ) {
    350350            $taxonomy_obj = get_taxonomy($tax_name);
     
    367367            unset( $post_data['tax_input']['category'] );
    368368        }
     369
     370        $post_data['post_mime_type'] = $post->post_mime_type;
     371        $post_data['guid'] = $post->guid;
    369372
    370373        $post_data['ID'] = $post_ID;
     
    538541
    539542    $_POST['post_mime_type'] = '';
     543
     544    // Clear out any data in internal vars.
     545    unset( $_POST['filter'] );
    540546
    541547    // Check for autosave collisions
Note: See TracChangeset for help on using the changeset viewer.