[wp-trac] [WordPress Trac] #14426: unneeded "SELECT FOUND_ROWS()" when no posts are found

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 4 00:47:35 UTC 2012


#14426: unneeded "SELECT FOUND_ROWS()" when no posts are found
-------------------------+-----------------------
 Reporter:  mark-k       |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  3.5
Component:  Query        |     Version:  3.0
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------

Comment (by SergeyBiryukov):

 `$found_posts` description seems inaccurate: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.1/wp-
 includes/query.php#L981

 Currently, it's the amount of posts if limit clause _was_ used (unless I'm
 missing something).

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


More information about the wp-trac mailing list