#33329 closed defect (bug) (duplicate)
Posts in Trash are conflicting with published posts
| Reported by: | guillaumemolter | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Permalinks | Version: | 4.3 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | administration |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @guillaumemolter, welcome to Trac!
Thanks for the report, we're already tracking this issue in #21970.