Changeset 21800
- Timestamp:
- 09/10/2012 08:39:45 PM (12 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/deprecated.php
r21651 r21800 975 975 } 976 976 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 */ 986 function 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 460 460 461 461 /** 462 * Get the default page information to use.463 *464 * @since 2.5.0465 *466 * @return WP_Post Post object containing all the default post data as attributes467 */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 /**475 462 * Determine if a post exists based on title, content, and date 476 463 *
Note: See TracChangeset
for help on using the changeset viewer.