[wp-trac] [WordPress Trac] #11236: Trashed pages can still be opened when logged in

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 27 01:52:34 UTC 2009


#11236: Trashed pages can still be opened when logged in
--------------------------+-------------------------------------------------
 Reporter:  caesarsgrunt  |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  lowest        |   Milestone:             
Component:  Trash         |     Version:  2.9        
 Severity:  trivial       |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
Changes (by hakre):

  * priority:  normal => lowest
  * milestone:  3.0 =>


Comment:

 Replying to [comment:6 caesarsgrunt]:
 > I don't think the message is a good idea in the frontend.
 I misread the ticket, I thought this was about the post editor (backend).

 ----

 Was able to reproduce. Trashed post is accessible as long as still logged
 in. Not-logged-in users will get a "Sorry, no posts matched your
 criteria." message (default theme).

 The related function ''have_posts()'' is returning true even for a trashed
 page. That function relies on wp_query->get_posts() (query.php line
 1564-2387). You must have passed at least the mid-term exam of the WP-
 Query Sience before you're allowed to write a patch for that 823-lined-
 function. Because of that I assume this will never get fixed. So I suggest
 wontfix right away.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11236#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list