[wp-trac] [WordPress Trac] #19949: Make update_post_thumbnail_cache() work for any instance
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 2 23:08:13 UTC 2012
#19949: Make update_post_thumbnail_cache() work for any instance
------------------------------+------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.4
Component: Performance | Version:
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+------------------
Comment (by scribu):
Example usage:
{{{
$my_query = new WP_Query( array( 'tag' => 'foo' ) );
update_post_thumbnail_cache( $my_query );
while ( $my_query->have_posts() ) : $my_query->the_post();
the_post_thumbnail();
endwhile;
}}}
Well, actually, that would also cause an
{{{update_post_thumbnail_cache()}}} call for the main query, which might
be unnecessary.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19949#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list