[wp-trac] [WordPress Trac] #19728: WP_Query should constrict 'paged' to be within bounds of found_posts
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 7 23:12:38 UTC 2012
#19728: WP_Query should constrict 'paged' to be within bounds of found_posts
-------------------------+------------------------------
Reporter: Master Jake | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by Master Jake):
I agree with you that it's simple enough to perform this fix at the
theme/plugin level, but I think it would be nice to at least have the
option to have bounded results returned natively. Rather than changing the
default functionality of WP_Query, a newly introduced option such as
'limit_to_bounds' with a default of 'false' would provide 100% backwards
compatibility. It also wouldn't have to slow down any query that doesn't
use limit_to_bounds, since WP_Query would only need to run a second query
if limit_to_bounds was true.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19728#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list