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

WordPress Trac noreply at wordpress.org
Wed Jun 11 02:27:39 UTC 2014


#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:
---------------------------------+-----------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"28733"]:
 {{{
 #!CommitTicketReference repository="" revision="28733"
 In `wp_insert_term()`, when no slug is provided, check for an existing
 term by name. If it exists, use that slug instead of calling
 `sanitize_title( $name )`.

 Prevents creating an endless number of terms like `A+` or `$$$$` in any
 given taxonomy.

 Props wonderboymusic, SergeyBiryukov, aaroncampbell.
 Fixes #17689.
 }}}

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


More information about the wp-trac mailing list