[wp-trac] [WordPress Trac] #17066: $wp_query->found_posts is set to 0 with posts_per_page=-1

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 7 01:40:30 UTC 2011

#17066: $wp_query->found_posts is set to 0 with posts_per_page=-1
 Reporter:  patrik bona   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:                |

Comment (by scribu):

 I think we should avoid the count: In my mind, "no_found_rows" signals
 that you're not interested in the total number of posts.

 Related: http://core.trac.wordpress.org/ticket/10964#comment:77

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

More information about the wp-trac mailing list