[wp-trac] [WordPress Trac] #33329: Posts in Trash are conflicting with published posts
WordPress Trac
noreply at wordpress.org
Mon Aug 10 20:30:12 UTC 2015
#33329: Posts in Trash are conflicting with published posts
-----------------------------+-----------------------------
Reporter: guillaumemolter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Permalinks | Version: trunk
Severity: normal | Keywords:
Focuses: administration |
-----------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33329>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list