[wp-trac] [WordPress Trac] #13282: conflict with pretty permalinks and trasjed posts

WordPress Trac wp-trac at lists.automattic.com
Thu May 6 19:09:54 UTC 2010


#13282: conflict with pretty permalinks and trasjed posts
--------------------------+-------------------------------------------------
 Reporter:  wpAdmirer     |       Owner:                                       
     Type:  defect (bug)  |      Status:  new                                  
 Priority:  normal        |   Milestone:  Unassigned                           
Component:  General       |     Version:  2.9.2                                
 Severity:  normal        |    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...

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13282>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list