mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 14:53:08 +02:00
Revert [27166].
We should not be accounting for improper assignment of WP_Query properties. fixes #26321. Built from https://develop.svn.wordpress.org/trunk@27746 git-svn-id: http://core.svn.wordpress.org/trunk@27583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bf5447f435
commit
52cc239578
@ -57,7 +57,7 @@ function update_post_thumbnail_cache( $wp_query = null ) {
|
|||||||
if ( ! $wp_query )
|
if ( ! $wp_query )
|
||||||
$wp_query = $GLOBALS['wp_query'];
|
$wp_query = $GLOBALS['wp_query'];
|
||||||
|
|
||||||
if ( $wp_query->thumbnails_cached || ! $wp_query->posts )
|
if ( $wp_query->thumbnails_cached )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$thumb_ids = array();
|
$thumb_ids = array();
|
||||||
@ -69,7 +69,7 @@ function update_post_thumbnail_cache( $wp_query = null ) {
|
|||||||
if ( ! empty ( $thumb_ids ) ) {
|
if ( ! empty ( $thumb_ids ) ) {
|
||||||
_prime_post_caches( $thumb_ids, false, true );
|
_prime_post_caches( $thumb_ids, false, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
$wp_query->thumbnails_cached = true;
|
$wp_query->thumbnails_cached = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user