[wp-trac] [WordPress Trac] #15475: Proposed new function: wp_unset_object_terms
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 21 18:15:56 UTC 2012
#15475: Proposed new function: wp_unset_object_terms
---------------------------------+-----------------------------
Reporter: simonwheatley | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: has-patch 3.3-early |
---------------------------------+-----------------------------
Comment (by maxcutler):
I added a fresh patch based on ericmann's but implementing the
improvements recommended by nacin.
I had to add another DB query to `wp_set_object_terms` in the
`append=true` case to get the term IDs from the tt IDs. The only reason is
for back-compat because `$old_tt_ids` is used in the `do_action` at the
end of the method (otherwise I would just change $old_tt_ids to
$old_term_ids). There may be a better way to handle that, but I couldn't
find any examples in taxonomy.php.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15475#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list