Make WordPress Core


Ignore:
Timestamp:
08/28/2012 07:08:28 PM (12 years ago)
Author:
ryan
Message:

Add tags_input, page_template, and post_category get magic to WP_Post.
Deprecate get_post_to_edit() and wp_get_single_post().
Props scribu
see #21309

File:
1 edited

Legend:

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

    r21597 r21651  
    166166
    167167    $title = $post_type_object->labels->edit_item;
    168     $post = get_post_to_edit($post_id);
     168    $post = get_post($post_id, OBJECT, 'edit');
    169169
    170170    if ( post_type_supports($post_type, 'comments') ) {
Note: See TracChangeset for help on using the changeset viewer.