diff --git wp-includes/post-thumbnail-template.php wp-includes/post-thumbnail-template.php
index b4cf8bf..a54b088 100644
|
|
function the_post_thumbnail( $size = 'post-thumbnail', $attr = '' ) { |
49 | 49 | /** |
50 | 50 | * Update cache for thumbnails in the current loop |
51 | 51 | * |
| 52 | * @param object $wp_query Optional. A WP_Query instance. Defaults to the $wp_query global. |
| 53 | * |
52 | 54 | * @since 3.2 |
53 | 55 | */ |
54 | | function update_post_thumbnail_cache() { |
55 | | global $wp_query; |
| 56 | function update_post_thumbnail_cache( $wp_query = null ) { |
| 57 | if ( !$wp_query ) |
| 58 | $wp_query = $GLOBALS['wp_query']; |
56 | 59 | |
57 | 60 | if ( $wp_query->thumbnails_cached ) |
58 | 61 | return; |