[wp-trac] [WordPress Trac] #11243: Don't show deleted Pages in wp.getPages results

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 27 09:39:44 UTC 2009


#11243: Don't show deleted Pages in wp.getPages results
--------------------------+-------------------------------------------------
 Reporter:  josephscott   |       Owner:  josephscott
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  2.9        
Component:  XML-RPC       |     Version:  2.9        
 Severity:  blocker       |    Keywords:  has-patch  
--------------------------+-------------------------------------------------

Comment(by Denis-de-Bernardy):

 Replying to [comment:5 westi]:
 > I disagreee
 >
 > {{{post_status = all}}} should return posts of all statuses whatever
 there meaning.

 It's your call, at the end of the day...

 FWIW, though, testing reveals that trashed posts and comments do creep up
 here and there, in WP and (more perversely) in plugins. 2.9 won't be as
 destructive as the introduction of the post_type column in the posts
 table. But the new status will result in issues that can easily be avoided
 by ensuring that the API remains backward-compatible.

 Until now, "all posts" has been short hand for public, private, pending,
 draft. Revisions were (conveniently) not returned since they had a
 different post_type. The new trash status, on the other hand, adds
 unexpected junk (no pun intended) to the list.

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


More information about the wp-trac mailing list