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

    r21413 r21651  
    944944/**
    945945 * This was once used to display an 'Insert into Post' button. Now it is deprecated and stubbed.
    946  * 
     946 *
    947947 * @deprecated 3.5.0
    948948 */
     
    953953/**
    954954 * This was once used to display a media button. Now it is deprecated and stubbed.
    955  * 
     955 *
    956956 * @deprecated 3.5.0
    957957 */
     
    959959    _deprecated_function( __FUNCTION__, '3.5' );
    960960}
     961
     962/**
     963 * Get an existing post and format it for editing.
     964 *
     965 * @since 2.0.0
     966 * @deprecated 3.5.0
     967 *
     968 * @param int $id
     969 * @return object
     970 */
     971function get_post_to_edit( $id ) {
     972    _deprecated_function( __FUNCTION__, '3.5', 'get_post()' );
     973
     974    return get_post( $id, OBJECT, 'edit' );
     975}
     976
Note: See TracChangeset for help on using the changeset viewer.