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

    r21592 r21597  
    16281628    if ( is_single() || is_page() ) {
    16291629        $id = 0;
    1630         $post = &get_post( $id );
     1630        $post = get_post( $id );
    16311631
    16321632        if ( comments_open() || pings_open() || $post->comment_count > 0 ) {
Note: See TracChangeset for help on using the changeset viewer.