WordPress.org

Make WordPress Core

Changeset 17457


Ignore:
Timestamp:
02/16/11 18:58:06 (3 years ago)
Author:
ryan
Message:

Don't allow changing the post type. Props nacin. For trunk

File:
1 edited

Legend:

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

    r17291 r17457  
    137137 
    138138    $post_ID = (int) $post_data['post_ID']; 
     139    $post = get_post( $post_ID ); 
     140    $post_data['post_type'] = $post->post_type; 
    139141 
    140142    $ptype = get_post_type_object($post_data['post_type']); 
Note: See TracChangeset for help on using the changeset viewer.