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/includes/template.php

    r21538 r21597  
    706706function the_attachment_links( $id = false ) {
    707707    $id = (int) $id;
    708     $post = & get_post( $id );
     708    $post = get_post( $id );
    709709
    710710    if ( $post->post_type != 'attachment' )
Note: See TracChangeset for help on using the changeset viewer.