set_object_terms should pass the old terms
|Reported by:||simonwheatley||Owned by:||westi|
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 (lots).
The attached diff amends the set_object_terms action to also pass the old_tt_ids array.
Change History (4)
- Summary changed from set_object_terms doesn't pass the old terms to set_object_terms should pass the old terms