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/deprecated.php

    r21597 r21651  
    32053205    _deprecated_function( __FUNCTION__, '3.5' );
    32063206}
     3207
     3208/**
     3209 * Retrieve a single post, based on post ID.
     3210 *
     3211 * Has categories in 'post_category' property or key. Has tags in 'tags_input'
     3212 * property or key.
     3213 *
     3214 * @since 1.0.0
     3215 * @deprecated 3.5.0
     3216 * @see get_post()
     3217 *
     3218 * @param int $postid Post ID.
     3219 * @param string $mode How to return result, either OBJECT, ARRAY_N, or ARRAY_A.
     3220 * @return object|array Post object or array holding post contents and information
     3221 */
     3222function wp_get_single_post( $postid = 0, $mode = OBJECT ) {
     3223    _deprecated_function( __FUNCTION__, '3.5', 'get_post()' );
     3224    return get_post( $postid, $mode, 'edit' );
     3225}
     3226
Note: See TracChangeset for help on using the changeset viewer.