[wp-trac] [WordPress Trac] #16567: Can't create categories with different names but similar slugs on Edit Post screen

WordPress Trac noreply at wordpress.org
Fri Dec 23 03:10:37 UTC 2016


#16567: Can't create categories with different names but similar slugs on Edit Post
screen
----------------------------------------+-----------------------------
 Reporter:  jeffreymcmanus              |       Owner:  boonebgorges
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:  4.8
Component:  Posts, Post Types           |     Version:  3.0.5
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |     Focuses:  administration
----------------------------------------+-----------------------------
Changes (by boonebgorges):

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


Comment:

 In [changeset:"39637"]:
 {{{
 #!CommitTicketReference repository="" revision="39637"
 Taxonomy: Eliminate redundant and inaccurate dupe check when creating
 categories from post.php.

 The `term_exists()` check is not needed because of existing dupe
 checks in `wp_insert_term()`. Furthermore, `term_exists()` conflates
 term names and sanitized slugs, so incorrectly marks terms like
 'C' and 'C+' as duplicates of one another.

 Props garyc40, SergeyBiryukov, kovshenin, MikeHansenMe.
 Fixes #16567.
 }}}

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


More information about the wp-trac mailing list