[wp-trac] [WordPress Trac] #11694: WP should do sanity checks for paginated posts, pages and comments
WordPress Trac
noreply at wordpress.org
Thu Apr 30 12:03:27 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:"47727" 47727]:
{{{
#!CommitTicketReference repository="" revision="47727"
Canonical: Redirect paged requests for non-paginated posts to the post
permalink.
This avoids displaying duplicate content of the same post under different
URLs and ensures the canonical URL is correct.
Previously, requests for invalid page numbers were only redirected to the
post permalink if the post was actually paginated using the `<!--
nextpage-->` marker.
Follow-up to [34492].
Props jeremyfelt, prografika, sachit.tandukar, subrataemfluence, hronak,
ekatherine, henry.wright, chesio, dd32, SergeyBiryukov.
Fixes #40773. See #45337, #28081, #11694.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/11694#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list