WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#33329 closed defect (bug) (duplicate)

Posts in Trash are conflicting with published posts

Reported by: guillaumemolter Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.3
Component: Permalinks Keywords:
Focuses: administration Cc:

Description

This problem is occurring on a vanilla trunk install

How to reproduce:

  • You need to use the "Post name" permalink setting.
  • Create a page with "this-is-a-test" as the permalink.
  • Publish the page and trash it.
  • Create a post with "this-is-a-test" as the permalink.
  • Publish the post and try to view it, you will get a 404.

This doesn't seem to be a problem if the two posts have the same post_type

Potential fixes:

  • WordPress should either "ignore" deleted pages on the front-end/get_posts to prevent conflicts or the admin should not let you create a post with the same slug as a deleted post as it does for published/draft posts.

Change History (2)

#1 @SergeyBiryukov
5 years ago

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

Hi @guillaumemolter, welcome to Trac!

Thanks for the report, we're already tracking this issue in #21970.

#2 @guillaumemolter
5 years ago

@SergeyBiryukov sorry for the duplicate I quickly looked for it but clearly not enough.

Note: See TracTickets for help on using tickets.