Make WordPress Core


Ignore:
Timestamp:
04/30/2012 03:55:57 PM (12 years ago)
Author:
nacin
Message:

Add $wp_query parameter to update_post_thumbnail_cache(). props scribu. see #19949, fixes that ticket for 3.4.

File:
1 edited

Legend:

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

    r19918 r20646  
    5151 *
    5252 * @since 3.2
     53 *
     54 * @param object $wp_query Optional. A WP_Query instance. Defaults to the $wp_query global.
    5355 */
    54 function update_post_thumbnail_cache() {
    55     global $wp_query;
     56function update_post_thumbnail_cache( $wp_query = null ) {
     57    if ( ! $wp_query )
     58        $wp_query = $GLOBALS['wp_query'];
    5659
    5760    if ( $wp_query->thumbnails_cached )
Note: See TracChangeset for help on using the changeset viewer.