[wp-trac] [WordPress Trac] #14426: unneeded "SELECT FOUND_ROWS()" when no posts are found
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 20 14:55:57 UTC 2012
#14426: unneeded "SELECT FOUND_ROWS()" when no posts are found
-------------------------+---------------------
Reporter: mark-k | Owner: ryan
Type: enhancement | Status: closed
Priority: normal | Milestone: 3.5
Component: Query | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: has-patch |
-------------------------+---------------------
Changes (by ryan):
* owner: => ryan
* status: reopened => closed
* resolution: => fixed
Comment:
In [21928]:
{{{
#!CommitTicketReference repository="" revision="21928"
* Avoid FOUND ROWS when no posts are found
* Set post_count and found_posts for all 'fields' queries.
* Set found_posts to post_count when limits are not used
* Update phpdoc for $found_posts and set_found_posts()
Props SergeyBiryukov, wonderboymusic
fixes #14426
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14426#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list