[wp-trac] [WordPress Trac] #19949: Make update_post_thumbnail_cache() work for any instance
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 25 22:30:32 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 3.5-early punt |
--------------------------------------+------------------
Comment (by scribu):
On the one hand, it would be nice if developers would never have to call
update_post_thumbnail_cache() manually. Nacin's solution works pretty well
in that respect.
On the other hand, it wouldn't work at all with get_posts().
Ideally, we would have both:
1) a standalone function that, given an array of posts, caches the
thumbnail attachments
2) some magic that calls that function automatically for any Loop
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19949#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list