WordPress.org

Make WordPress Core

Changeset 17458


Ignore:
Timestamp:
02/16/2011 06:58:40 PM (7 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r17291 r17458  
    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.