WordPress.org

Make WordPress Core

Changeset 21800


Ignore:
Timestamp:
09/10/2012 08:39:45 PM (6 years ago)
Author:
ryan
Message:

Deprecate get_default_post_to_edit(). Props SergeyBiryukov. fixes #21677

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/deprecated.php

    r21651 r21800  
    975975}
    976976
     977/**
     978 * Get the default page information to use.
     979 *
     980 * @since 2.5.0
     981 * @deprecated 3.5.0
     982 * @deprecated Use get_default_post_to_edit()
     983 *
     984 * @return WP_Post Post object containing all the default post data as attributes
     985 */
     986function get_default_page_to_edit() {
     987    _deprecated_function( __FUNCTION__, '3.5', "get_default_post_to_edit( 'page' )" );
     988
     989    $page = get_default_post_to_edit();
     990    $page->post_type = 'page';
     991    return $page;
     992}
     993
  • trunk/wp-admin/includes/post.php

    r21789 r21800  
    460460
    461461/**
    462  * Get the default page information to use.
    463  *
    464  * @since 2.5.0
    465  *
    466  * @return WP_Post Post object containing all the default post data as attributes
    467  */
    468 function get_default_page_to_edit() {
    469     $page = get_default_post_to_edit();
    470     $page->post_type = 'page';
    471     return $page;
    472 }
    473 
    474 /**
    475462 * Determine if a post exists based on title, content, and date
    476463 *
Note: See TracChangeset for help on using the changeset viewer.