#18067 closed enhancement (duplicate)
update_post_thumbnail_cache - accept WP_Query instance
Reported by: | TheDeadMedic | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 3.2 |
Component: | Post Thumbnails | Keywords: | |
Focuses: | Cc: |
Description
Following what 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.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
This was fixed a while ago, in 20646, so it's possible to pass a custom
WP_Query
object as parameter to the function.Let's continue any remaining discussion in #19949.