[wp-trac] [WordPress Trac] #14528: Set no_found_rows = true in get_posts()

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 4 12:38:01 UTC 2010


#14528: Set no_found_rows = true in get_posts()
-------------------------+--------------------------------------------------
 Reporter:  scribu       |       Owner:                  
     Type:  enhancement  |      Status:  new             
 Priority:  normal       |   Milestone:  3.1             
Component:  Performance  |     Version:                  
 Severity:  normal       |    Keywords:  has-patch commit
-------------------------+--------------------------------------------------
 When using get_posts(), you have no way of accesing $wp_query->found_posts
 so the SELECT FOUND_ROWS() query is useless.

 So, the no_found_rows flag should always be set.

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


More information about the wp-trac mailing list