[wp-trac] [WordPress Trac] #17195: Lazy load $wp_query->found_posts
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 20 19:57:06 UTC 2011
#17195: Lazy load $wp_query->found_posts
-------------------------+------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.2
Component: Query | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------
Description changed by scribu:
Old description:
> prettyboymp in #10964:
>
> For the most part, the found posts result is only needed for the main
> loop where paging is involved, yet, most developers don't know to add the
> 'no_found_rows' parameter to every single WP_Query request where they
> don't need paging.
New description:
prettyboymp in #10964:
For the most part, the found posts result is only needed for the main loop
where paging is involved, yet, most developers don't know to add the
'no_found_rows' parameter to every single WP_Query request where they
don't need paging. It would require creating a magic get() method for
backwards compatibility, but it can throw a deprecated warning and switch
to a real getter implementation.
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17195#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list