[wp-trac] [WordPress Trac] #26570: wp_set_object_terms - bug

WordPress Trac noreply at wordpress.org
Wed Jul 2 01:22:28 UTC 2014


#26570: wp_set_object_terms - bug
---------------------------------------------+-------------------
 Reporter:  stiofansisland                   |       Owner:
     Type:  defect (bug)                     |      Status:  new
 Priority:  normal                           |   Milestone:  4.0
Component:  Taxonomy                         |     Version:  2.3
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  docs
---------------------------------------------+-------------------

Comment (by SergeyBiryukov):

 The main point of this ticket was fixed in #17646.

 > `A single term slug (if the taxonomy is hierarchical)`

 This appears to contradict comment:1. I don't think it actually matters if
 the taxonomy is hierarchical or not, both the term ID and the term slug
 should work regardless. I've expanded the unit tests to demonstrate that.

 We already have [source:tags/3.9.1/tests/phpunit/tests/term.php#L112 tests
 for wp_set_object_terms], and there's some overlap between the old and new
 ones, but I guess adding more wouldn't hurt.

 To summarize, there are no significant changes here, we just clarify the
 docs a bit and add some more unit tests.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26570#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list