[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:47:15 UTC 2010


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

Comment(by johnbillion):

 That does indeed work.

 Updated patch changes `update_object_term_cache()` so it accepts a single
 object type or an array of object types.

 `update_post_caches()` is also modified so it passes an array of the post
 types from the $posts array if $post_type is set to 'all'.

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


More information about the wp-trac mailing list