Make WordPress Core


Ignore:
Timestamp:
08/23/2012 08:01:10 PM (12 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/post.php

    r21504 r21597  
    203203    check_admin_referer('trash-post_' . $post_id);
    204204
    205     $post = & get_post($post_id);
     205    $post = get_post($post_id);
    206206
    207207    if ( !current_user_can($post_type_object->cap->delete_post, $post_id) )
Note: See TracChangeset for help on using the changeset viewer.