[wp-trac] [WordPress Trac] #14821: Add multiple post type support to update_object_term_cache()

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 9 20:12:25 UTC 2010


#14821: Add multiple post type support to update_object_term_cache()
-------------------------+--------------------------------------------------
 Reporter:  johnbillion  |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Performance  |     Version:  3.0.1          
 Severity:  normal       |    Keywords:  has-patch      
-------------------------+--------------------------------------------------

Comment(by nacin):

 We should probably adjust update_object_term_cache() to accept multiple
 post types instead, that way we still keep to a single
 wp_get_object_terms() call.

 Support for it should probably be pretty easy. Simply call
 get_object_taxonomies() for each post type and merge the result, I think.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14821#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list