WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#15359 closed defect (bug) (wontfix)

Post or page (even in Trash) can break listing of category with same slug name

Reported by: jorisw Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Query Keywords:
Focuses: Cc:

Description

If a post or page exists with for example slug name "blog", and WordPress's permalinks are set to /%category%/%postname%/ , the post or page will break the listing page of a category named blog.

While this may seem unusual and wrong to do anyway, this persists when the post or page is put in the trash.

A post or page in the trash with slug name 'blog' will stop /blog/ from showing a category named blog. It will show a WordPress style 404, probably it tries to access the trashed post / page instead of going for the category listing.

Change History (3)

comment:1 scribu3 years ago

  • Component changed from General to Query

comment:2 markjaquith3 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

By default, you have to access /category/blog/. We don't support category URLs without a prepended /category/ (or user-defined) slug.

If I'm not understanding you, please reopen with more details.

comment:3 ocean903 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.