Make WordPress Core

Opened 19 years ago

Closed 18 years ago

Last modified 18 years ago

#1298 closed defect (bug) (fixed)

WP does not force category slugs to be unique

Reported by: mc_incubus's profile MC_incubus Owned by:
Milestone: Priority: normal
Severity: minor Version: 1.5.1
Component: General Keywords: bg|tested
Focuses: Cc:


Category slugs need to be unique, otherwise /category/foo/music/ will return its posts as well as the posts in /category/bar/music/

When creating or editing a category, WP should probably check for slug conflicts, and append an incremented number to the end to ensure uniqueness, or at least tell the user about the problem so they can manually choose an alternate slug.

Attachments (1)

categories.php-diff (843 bytes) - added by schulte 19 years ago.
diff of changes to categories.php

Download all attachments as: .zip

Change History (6)

#1 @MC_incubus
19 years ago

  • Patch set to No

19 years ago

diff of changes to categories.php

#2 @schulte
19 years ago

addendum to attachment.

needed to issue an alter table wp_categories drop index cat_name

#3 @schulte
19 years ago

Appears to be fixed with #1797.

#4 @westi
18 years ago

  • Keywords bg|tested added
  • Resolution set to fixed
  • Status changed from new to closed

Tested in trunk.

I agree this is fixed by #1797 marking as completed

#5 @westi
18 years ago

Sorry make that #1787 not 1797 the link above in schulte's comment is misleading!

Note: See TracTickets for help on using tickets.