[wp-trac] [WordPress Trac] #29131: Does not allow duplicate term slugs when using different cases

WordPress Trac noreply at wordpress.org
Wed Aug 6 13:22:33 UTC 2014


#29131: Does not allow duplicate term slugs when using different cases
--------------------------+------------------------------
 Reporter:  jpswade       |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:  3.9.1
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => close
 * milestone:   => Awaiting Review


Comment:

 > This will result in a Category called Banana with the slug 'banana' and
 a Tag called 'BANANA' and the slug 'banana-2'.

 This appears to be the expected result, see the description of
 [source:tags/3.9.1/src/wp-includes/taxonomy.php#L2766
 wp_unique_term_slug()].

  The $slug has to be unique global to every taxonomy, meaning that one
 taxonomy term can't have a matching slug with another taxonomy term. Each
 slug has to be globally unique for every taxonomy.

 The case of the term name doesn't matter.

 We do create shared terms if there's an exact match (see #5809, #21950,
 #23199), but the plan is to get rid of them:
 http://make.wordpress.org/core/2013/07/28/potential-roadmap-for-taxonomy-
 meta-and-post-relationships/.

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


More information about the wp-trac mailing list