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-includes/class-wp-atom-server.php

    r20715 r21651  
    914914        }
    915915
    916         $entry = wp_get_single_post($postID,ARRAY_A);
     916        $entry = get_post($postID,ARRAY_A);
    917917
    918918        if (!isset($entry) || !isset($entry['ID']))
     
    14111411            case $this->ENTRY_PATH:
    14121412                global $post;
    1413                 $post = wp_get_single_post($this->params[1]);
     1413                $post = get_post($this->params[1]);
    14141414                $wp_last_modified = get_post_modified_time('D, d M Y H:i:s', true);
    14151415                $post = null;
Note: See TracChangeset for help on using the changeset viewer.