[wp-trac] [WordPress Trac] #39483: Use $wp_the_query for the main loop and pagination
WordPress Trac
noreply at wordpress.org
Sun Jan 5 00:59:42 UTC 2020
#39483: Use $wp_the_query for the main loop and pagination
-------------------------+------------------------------
Reporter: prosti | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses:
-------------------------+------------------------------
Changes (by Howdy_McGee):
* keywords: => 2nd-opinion
Comment:
The `paginate_links()` appears to only rely on `$wp_query` to manage
max_num_pages which can be altered by passing `total =>
$custom_query->max_num_pages`. I don't think this improvement is necessary
and can probably be closed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39483#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list