[wp-trac] [WordPress Trac] #13119: Duplicate slug not possible for separate items

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 26 13:46:55 UTC 2010


#13119: Duplicate slug not possible for separate items
----------------------------+-----------------------------------------------
 Reporter:  solostream      |       Owner:                                      
     Type:  defect (bug)    |      Status:  new                                 
 Priority:  normal          |   Milestone:  3.0                                 
Component:  Administration  |     Version:  3.0                                 
 Severity:  major           |    Keywords:  category, tag, duplicate, item, term
----------------------------+-----------------------------------------------
 I have recently come across a bug in WordPress 3.0-beta1 that has happened
 on two customers' sites. Apparently it is not possible to have the same
 term for an item be used twice, unlike previous versions. For instance, if
 you wanted to have a category slug named 'featured' and a tag named
 'featured' it is not possible to do so. The first item that was created is
 assigned the slug 'featured' while the second one is assigned the slug
 'featured-2'. This doesn't play nicely with our themes as the tag
 'featured' needs to be used for a featured slider.

 Steps to consistently reproduce the problem:

 1. Add a category called 'featured'. Leave all other fields blank.

 2. Add a tag called 'featured'. Again, leave all other fields blank.

 3. Look at tag slug -- it will be 'featured-2' instead of 'featured'

 4. Repeat steps 1-3 for another category/tag name to see same results

 The above bug is not related to any plugins or theme being used. It is a
 part of WP Admin and needs to be corrected.

 How to fix:

 - Like previous versions of WordPress, allow the ability to have two
 separate items to share the same slug (e.g., category and tag)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13119>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list