Make WordPress Core

Changeset 27746


Ignore:
Timestamp:
03/26/2014 06:42:41 PM (11 years ago)
Author:
nacin
Message:

Revert [27166].

We should not be accounting for improper assignment of WP_Query properties.

fixes #26321.

Location:
trunk
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-thumbnail-template.php

    r27166 r27746  
    5858        $wp_query = $GLOBALS['wp_query'];
    5959
    60     if ( $wp_query->thumbnails_cached || ! $wp_query->posts )
     60    if ( $wp_query->thumbnails_cached )
    6161        return;
    6262
     
    7070        _prime_post_caches( $thumb_ids, false, true );
    7171    }
    72    
     72
    7373    $wp_query->thumbnails_cached = true;
    7474}
Note: See TracChangeset for help on using the changeset viewer.