Wordpress/tests/phpunit/tests/link
Sergey Biryukov af596bcc5b 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@47727 602fd350-edb4-49c9-b593-d223f7449a82
2020-04-30 12:03:11 +00:00
..
adminUrl.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getAdjacentPost.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
getAdjacentPostLink.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
getDashboardUrl.php Tests: Replace most instances of wpmu_delete_blog() not specifically testing that function with wp_delete_site(). 2019-12-25 18:15:13 +00:00
getNextCommentsLink.php
getPostCommentsFeedLink.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
getPostTypeArchiveLink.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getPreviewPostLink.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
getPreviousCommentsLink.php
getThePrivacyPolicyLink.php Privacy: Use the actual Privacy Policy page title in get_the_privacy_policy_link(). 2018-07-18 11:49:46 +00:00
themeFile.php Coding Standards: Fix the remaining issues in /tests. 2019-07-08 00:55:20 +00:00
wpGetCanonicalURL.php Canonical: Redirect paged requests for non-paginated posts to the post permalink. 2020-04-30 12:03:11 +00:00