[wp-trac] [WordPress Trac] #15475: Proposed new function: wp_unset_object_terms

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 21 16:49:21 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 nacin):

 > Since we have wp_set_object_terms(), I would agree the counterpart
 should be wp_unset_object_terms().

 I am willing to change my mind on that. Since set() does do replacements,
 adds, and removals, I understand the desire for remove() rather than
 unset(). Likewise, if we are to add remove(), we should probably add
 add(), which would simply wrap set() with $append = true.

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


More information about the wp-trac mailing list