Opened 13 years ago
Last modified 12 years ago
#17195 closed enhancement
Lazy load $wp_query->found_posts — at Version 1
Reported by: | scribu | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Query | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
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.
Note: See
TracTickets for help on using
tickets.