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

WordPress Trac noreply at wordpress.org
Wed Oct 17 20:57:27 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):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [22258]:
 {{{
 #!CommitTicketReference repository="" revision="22258"
 If posts is an empty array, bail from set_found_posts(). If posts is null
 or otherwise empty proceed through set_found_posts(). This accommodates
 caching plugins such as Advanced Post Cache that force posts to be empty
 for later population but still require the found_posts_query filter to
 run.

 fixes #14426
 }}}

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


More information about the wp-trac mailing list