Make WordPress Core


Ignore:
Timestamp:
08/23/2012 08:01:10 PM (13 years ago)
Author:
ryan
Message:

Remove return ref from all calls to get_post()
Return WP_Post from get_default_post_to_edit()
Replace all calls to get_page() with get_post()
see #21309

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload.php

    r20449 r21597  
    5858                return;
    5959
    60             $parent = &get_post( $parent_id );
     60            $parent = get_post( $parent_id );
    6161            if ( !current_user_can( 'edit_post', $parent_id ) )
    6262                wp_die( __( 'You are not allowed to edit this post.' ) );
Note: See TracChangeset for help on using the changeset viewer.