Make WordPress Core


Ignore:
Timestamp:
08/23/2012 08:34:41 PM (12 years ago)
Author:
ryan
Message:

Update phpdoc for functions that return WP_Post. Soft deprecate get_page(). see #21309

File:
1 edited

Legend:

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

    r21597 r21598  
    400400 *
    401401 * @param string $post_type A post type string, defaults to 'post'.
    402  * @return object stdClass object containing all the default post data as attributes
     402 * @return WP_Post Post object containing all the default post data as attributes
    403403 */
    404404function get_default_post_to_edit( $post_type = 'post', $create_in_db = false ) {
     
    456456 * @since 2.5.0
    457457 *
    458  * @return object stdClass object containing all the default post data as attributes
     458 * @return WP_Post Post object containing all the default post data as attributes
    459459 */
    460460function get_default_page_to_edit() {
     
    469469 * @since 2.0.0
    470470 *
    471  * @param unknown_type $id
    472  * @return unknown
     471 * @param int $id
     472 * @return WP_Post
    473473 */
    474474function get_post_to_edit( $id ) {
Note: See TracChangeset for help on using the changeset viewer.