Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#23213 closed feature request (duplicate)

Registering a reserved taxonomy breaks permalinks in an awkward way

Reported by: ahrengot's profile Ahrengot Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5
Component: Taxonomy Keywords:
Focuses: Cc:

Description

This is my first submission via track, so if I'm screwing things up, please let me know.

It seems that permalinks break in a really awkward way after you register a taxonomy using one of the 50+ reserved terms: http://codex.wordpress.org/Function_Reference/register_taxonomy#Reserved_Terms

For instance, I registered a taxonomy with the name year. After that, using the domain.com/%postname%/ permalink structure, all links returned the home page, except for 2nd level pages. For instance domain.com/page/subpage. Removing the year taxonomy and regenerating the .htaccess file fixed the issue.

As there are 50+ reserved taxonomy terms, I feel it's pretty easy to make this mistake. I propose an error or notice of sort if you try to register a reserved taxonomy term.

Change History (4)

#1 @Ahrengot
12 years ago

#23214 was marked as a duplicate.

#2 @helen
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

I pointed you to #12929 as a duplicate in IRC - not sure why you opened this.

#3 @Ahrengot
12 years ago

Sorry about that, I didn't see any replies in IRC and my search here on trac returned nothing. Still learning :)

#4 @SergeyBiryukov
12 years ago

  • Keywords needs-patch removed
Note: See TracTickets for help on using tickets.