Allow update_post_caches() to cache terms for more scenario's
|Reported by:||dd32||Owned by:|
At present, update_post_caches() can only update the term cache if a specific set of characteristics is met, Unfortunately, presently it's limited to caching if the query was for a single post type AND specified as such.
Scenario's which do not match:
- Array of post_type's (eg: posts & notes in a loop)
- When 'any' post_type is specified (for certain Archives, eg, Search & Term Archives)
The following commit takes advantage of update_object_term_cache()'s ability to receive multiple post types. in the case of the 'any' post type, it uses the post types from the provided posts.