#33329 closed defect (bug) (duplicate)
Posts in Trash are conflicting with published posts
Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.
Hi @guillaumemolter, welcome to Trac!
Thanks for the report, we're already tracking this issue in #21970.