[wp-trac] Re: [WordPress Trac] #4711: get_pages and get_posts do not work well with private posts

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 14 02:44:28 GMT 2007


#4711: get_pages and get_posts do not work well with private posts
-------------------------------------+--------------------------------------
 Reporter:  Otto42                   |        Owner:  anonymous  
     Type:  defect                   |       Status:  new        
 Priority:  normal                   |    Milestone:  2.3 (trunk)
Component:  Template                 |      Version:  2.2.1      
 Severity:  major                    |   Resolution:             
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------
Comment (by ryan):

 get_posts and get_pages should be able to directly retrieve any post
 status, regardless of the current user.  Plugins and the admin need to be
 able to get at anything.  Maybe we need some more args.  post_status__in
 => array('publish', 'private'), check_user_caps => true.  Something like
 that.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4711#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list