[wp-trac] [WordPress Trac] #56937: Paginated results of a 'feed' term inaccessible
WordPress Trac
noreply at wordpress.org
Tue Nov 1 03:02:32 UTC 2022
#56937: Paginated results of a 'feed' term inaccessible
--------------------------+-----------------------------
Reporter: dd32 | Owner: (none)
Type: defect (bug) | Status: new
Priority: low | Milestone: Awaiting Review
Component: Canonical | Version: 2.7.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
As reported by @alvarogois in #meta6531, if a taxonomy (core, or custom)
includes a term 'feed' and you attempt to access the paginated results of
it, you'll be redirected to the incorrect location by
`redirect_canonical()`.
The cause is due to this code:
https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/canonical.php?rev=53043&marks=430,437,443#L427
(is_paged() = true, `/feed` exists within path, strip it off)
For example, in the above Meta ticket,
`https://wordpress.org/plugins/tags/page/2/` is incorrectly redirected to
`https://wordpress.org/plugins/tags/page/2/`, from there custom
WordPress.org code kicks in and redirects it elsewhere.
This likely traces back to [10505] / #8642.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56937>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list