WordPress.org

Make WordPress Core

Ticket #21677: 21677.patch

File 21677.patch, 1.4 KB (added by SergeyBiryukov, 20 months ago)
  • wp-admin/includes/deprecated.php

     
    958958function _media_button($title, $icon, $type, $id) { 
    959959        _deprecated_function( __FUNCTION__, '3.5' ); 
    960960} 
     961 
     962/** 
     963 * Get the default page information to use. 
     964 * 
     965 * @since 2.5.0 
     966 * @deprecated 3.5.0 
     967 * @deprecated Use get_default_post_to_edit() 
     968 * 
     969 * @return object stdClass object containing all the default post data as attributes 
     970 */ 
     971function get_default_page_to_edit() { 
     972        _deprecated_function( __FUNCTION__, '3.5', "get_default_post_to_edit( 'page' )" ); 
     973 
     974        $page = get_default_post_to_edit(); 
     975        $page->post_type = 'page'; 
     976        return $page; 
     977} 
  • wp-admin/includes/post.php

     
    450450} 
    451451 
    452452/** 
    453  * Get the default page information to use. 
    454  * 
    455  * @since 2.5.0 
    456  * 
    457  * @return object stdClass object containing all the default post data as attributes 
    458  */ 
    459 function get_default_page_to_edit() { 
    460         $page = get_default_post_to_edit(); 
    461         $page->post_type = 'page'; 
    462         return $page; 
    463 } 
    464  
    465 /** 
    466453 * Get an existing post and format it for editing. 
    467454 * 
    468455 * @since 2.0.0