Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#13282 closed defect (bug) (duplicate)

conflict with pretty permalinks and trasjed posts

Reported by: wpadmirer's profile wpAdmirer Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.9.2
Component: General Keywords: permalinks, trash, deleted post, page
Focuses: Cc:

Description

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...

Change History (1)

#1 @nacin
15 years ago

  • Milestone Unassigned deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.