[wp-trac] [WordPress Trac] #18067: update_post_thumbnail_cache - accept WP_Query instance

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 11 15:03:22 UTC 2011


#18067: update_post_thumbnail_cache - accept WP_Query instance
-----------------------------+-----------------------------
 Reporter:  TheDeadMedic     |      Owner:
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Post Thumbnails  |    Version:  3.2
 Severity:  minor            |   Keywords:  has-patch
-----------------------------+-----------------------------
 Following what [http://core.trac.wordpress.org/ticket/15447#comment:26
 scribu said in another ticket];
 > ...What would be nice would be to allow update_thumbnail_cache() to be
 used for custom loops too.
 >
 > I'm thinking of adding an optional $_wp_query parameter. Then,
 knowledgeable developers could call it before rolling their custom loop.

 I agree - it would be dead handy to be able to just call
 {{{update_post_thumbnail_cache( $my_query )}}} - see revision.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18067>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list