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

WordPress Trac noreply at wordpress.org
Mon Feb 9 03:58:37 UTC 2015


#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 fixed-major commit  |     Focuses:
------------------------------------------+---------------------------
Changes (by dd32):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31378"]:
 {{{
 #!CommitTicketReference repository="" revision="31378"
 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.
 Merges [30985] to the 4.1 branch.
 Fixes #30780.
 }}}

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


More information about the wp-trac mailing list