[wp-trac] [WordPress Trac] #21113: Previous/Next page links maintain all GET variables
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 29 16:50:00 UTC 2012
#21113: Previous/Next page links maintain all GET variables
--------------------------+------------------------------
Reporter: kirrus | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.4
Severity: minor | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by SergeyBiryukov):
> These should only really keep query-strings that wordpress knows it'll
need
The problem is that there's no way to tell in advance which query vars
will be needed. If a plugin uses custom `$_GET` vars, an attempt to remove
any non-default query parameters would break that.
It should be possible to remove them in this particular case by hooking to
`get_pagenum_link` filter.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21113#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list