[wp-trac] [WordPress Trac] #11694: WP should do sanity checks for paginated posts, pages and comments
WordPress Trac
noreply at wordpress.org
Mon May 4 10:40:20 UTC 2020
#11694: WP should do sanity checks for paginated posts, pages and comments
---------------------------------+-----------------------------
Reporter: Denis-de-Bernardy | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Posts, Post Types | Version: 2.9
Severity: major | Resolution: fixed
Keywords: has-patch 3.9-early | Focuses: template
---------------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"47760" 47760]:
{{{
#!CommitTicketReference repository="" revision="47760"
Canonical: Redirect paged requests for a static page assigned as the
"Posts page".
This avoids displaying duplicate content of the home page under different
URLs with appended page numbers.
This change only affects the `<!--nextpage-->` pagination (`page` query
variable) and not the regular multiple posts pagination (`paged` query
variable).
The posts page does not support the `<!--nextpage-->` pagination, so
requests for invalid page numbers should be redirected to the page
permalink, applying the logic previously implemented for single posts or
pages.
Follow-up to [34492], [47727].
Props jeremyfelt, sachit.tandukar, SergeyBiryukov.
Fixes #45337. See #40773, #28081, #11694.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/11694#comment:45>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list