[wp-trac] [WordPress Trac] #21028: Singular pagination canonical redirection causes some breakage
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 20 19:12:54 UTC 2012
#21028: Singular pagination canonical redirection causes some breakage
--------------------------+-----------------------------
Reporter: duck_ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 3.4
Severity: normal | Keywords: 2nd-opinion
--------------------------+-----------------------------
3.4 fixed canonical redirection for singular pagination, see #20385 and
[20397].
However, some users were using the "page" query parameter for something
other than WordPress' default pagination. The canonical redirect hijacks
this even if the post/page is not multipaged.
An example is buddypress.org: http://buddypress.org/extend/plugins/?page=2
This can be fixed by those relying on the broken redirect. Instead of
looking for `$_GET['page']` retrieving the value from $wp_query can be
done: `get_query_var('page')`. Using that it should work and give pretty
URLs.
Originally reported by taropaa in #21020.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21028>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list