[wp-trac] [WordPress Trac] #16575: get_posts() just broke

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 16 14:30:51 UTC 2011


#16575: get_posts() just broke
--------------------------+-----------------------------
 Reporter:  johnbillion   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  3.1
 Severity:  blocker       |   Keywords:
--------------------------+-----------------------------
 Probably related to r17451 (see #16545).

 `get_posts()` has broken when page_on_front == true.

 Example:

 {{{
 $posts = get_posts(array(
         'post_type' => 'post'
 ));

 print_r($posts);
 }}}

 You'll get an empty array because the page_id query var is being set
 somewhere.

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


More information about the wp-trac mailing list