[wp-trac] [WordPress Trac] #54074: Slug index not set as unique in databse

WordPress Trac noreply at wordpress.org
Sun Sep 5 23:12:08 UTC 2021


#54074: Slug index not set as unique in databse
--------------------------+----------------------
 Reporter:  odjuret       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Taxonomy      |     Version:  4.1
 Severity:  normal        |  Resolution:  wontfix
 Keywords:                |     Focuses:  docs
--------------------------+----------------------
Changes (by peterwilsoncc):

 * status:  new => closed
 * focuses:  performance => docs
 * version:  5.8 => 4.1
 * milestone:  Awaiting Review =>
 * keywords:  close =>
 * resolution:   => wontfix


Comment:

 As Sergey mentions above, this was an intentional change in WP 4.1 to
 allow different taxonomies to use the same slug, for example both a names
 taxonomy and a cities taxonomy could use the slug `paris`. The function
 `wp_unique_term_slug()` performs a check to ensure the slug is unique for
 each taxonomy.

 I've updated the codex page to reflect this as it seems it was never
 updated.

 I'm going to close this as wontfix, which is trac's unfriendly term to
 indicate no cahnge to code is required. I've added the docs focus as a
 change was required to the codex.

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


More information about the wp-trac mailing list