conflict with pretty permalinks and trasjed posts
|Reported by:||wpAdmirer||Owned by:|
|Component:||General||Keywords:||permalinks, trash, deleted post, page|
I have noticed a problem where if I have post in the trash with the same name/slug as a published post, wordpress will try to direct users to the trashed post (which means they'll get a Not found error because they are not logged in).
This happened to me today: I created a draft page called "today" (using permalinks set to just URL/postname), then realized I had meant to create a post instead, so I trashed the page. I then created the post, called it "today" and published, but it was not appearing on my site. I sent the permalink to a user who was not logged in, and he got a Not Found error. When I (a logged in user) followed the poermalink, I realize what I was seeing was the incomplete content of the trashed page "today" as opposed to the published post "today." Problem went away once I emptied the trash.
It seems like a better fix for this would be that items in the trash don't get counted in the permalinks structure...