[wp-trac] [WordPress Trac] #17689: Terms should not be sanitized inside term_exists()

WordPress Trac noreply at wordpress.org
Mon Mar 16 11:15:38 UTC 2015


#17689: Terms should not be sanitized inside term_exists()
---------------------------------+-----------------------------
 Reporter:  blepoxp              |       Owner:  wonderboymusic
     Type:  defect (bug)         |      Status:  closed
 Priority:  high                 |   Milestone:  4.0
Component:  Taxonomy             |     Version:  3.2
 Severity:  normal               |  Resolution:  fixed
 Keywords:  has-patch 4.0-early  |     Focuses:
---------------------------------+-----------------------------

Comment (by boonebgorges):

 In [changeset:"31792"]:
 {{{
 #!CommitTicketReference repository="" revision="31792"
 In `wp_insert_term()`, allow a term with an existing name if a unique
 `$slug` has been provided.

 `wp_insert_term()` protects against the creation of terms with duplicate
 names
 at the same level of a taxonomy hierarchy. However, it's historically been
 possible to override this protection by explicitly providing a value of
 `$slug`
 that is unique at the hierarchy tier. This ability was broken in [31734],
 and
 the current changeset restores the original behavior.

 A number of unit tests are added and refactored in support of these
 changes.

 See #17689 for discussion of a fix that was superceded by [31734]. This
 commit
 retains the fix for the underlying bug described in that ticket.

 See #31328.
 }}}

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


More information about the wp-trac mailing list