[wp-trac] [WordPress Trac] #30780: Inconsistent behavior/results of wp_insert_term and wp_update_term

WordPress Trac noreply at wordpress.org
Mon Dec 22 15:33:01 UTC 2014


#30780: Inconsistent behavior/results of wp_insert_term and wp_update_term
--------------------------+---------------------------
 Reporter:  ipm-frommen   |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.1.1
Component:  Taxonomy      |     Version:  4.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"30985"]:
 {{{
 #!CommitTicketReference repository="" revision="30985"
 In `wp_update_term()`, limit duplicate slug checks to the same taxonomy as
 the updated term.

 In 4.1 [30240], `wp_insert_term()` was modified to allow the creation of
 terms
 with duplicate slugs, as long as the terms are in different taxonomies.
 `wp_update_term()` didn't get the corresponding modification, with the
 result
 that term updates fail when the term being updated shares a slug with an
 older
 term, regardless of that older term's taxonomy.

 Props ipm-frommen.
 Fixes #30780 for trunk.
 }}}

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


More information about the wp-trac mailing list