Ticket #21677: 21677.patch
File 21677.patch, 1.4 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/deprecated.php
958 958 function _media_button($title, $icon, $type, $id) { 959 959 _deprecated_function( __FUNCTION__, '3.5' ); 960 960 } 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 */ 971 function 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
450 450 } 451 451 452 452 /** 453 * Get the default page information to use.454 *455 * @since 2.5.0456 *457 * @return object stdClass object containing all the default post data as attributes458 */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 /**466 453 * Get an existing post and format it for editing. 467 454 * 468 455 * @since 2.0.0