[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:39:21 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
-------------------------+--------------------------------------------------
Description changed by scribu:
Old description:
> 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.
New description:
When using get_posts(), you have no way of accesing
$wp_query->found_posts, making the SELECT FOUND_ROWS() query useless.
So, the no_found_rows flag should always be set.
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14528#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list