[wp-trac] [WordPress Trac] #10962: set_object_terms doesn't pass the old terms

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 16 10:52:31 UTC 2009

#10962: set_object_terms doesn't pass the old terms
 Reporter:  simonwheatley  |       Owner:  westi     
     Type:  enhancement    |      Status:  new       
 Priority:  normal         |   Milestone:  Unassigned
Component:  Taxonomy       |     Version:            
 Severity:  normal         |    Keywords:  has-patch 
 I'm writing a plugin which will allow tag clouds which are pinned to
 particular specified categories, e.g. show me the tag cloud for all posts
 in the "documents" category. This means I need to precache additional term
 counts for these categories. Because set_object_terms doesn't pass the
 old_tt_ids I am forced to iterate all the tags in the system in case a tag
 was deleted, if the old ids were passed I'd have code execution times
 approximately ten times faster with the number of tags in my system

 The attached diff amends the set_object_terms action to also pass the
 old_tt_ids array.

Ticket URL: <http://core.trac.wordpress.org/ticket/10962>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list