Bring several small improvements to WordPress RSS feeds #18555
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
Summary
This PR can be summarized in the following changelog entry:
link
tag in the RSS feeds'channel
section links to the most specific URL possible (for instance the category or tag the RSS feed is for) instead of the homepage.Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
Make sure that feeds are enabled
Repeat the checks below for all these types of feeds:
In the Network tab of your inspector, see that there is a
Link
HTTP header withrel="canonical"
for every RSS feed, that has the URL of the page related to the feed (i.e. without/feed
in the end)See that the
<link>
element in the<channel>
section links to the same URLSee that the separator used in the title is the one selected in Yoast SEO > Search Appearance
Repeat the above check
In the Network tab of your inspector, see that there is a
Link
HTTP header withrel="canonical"
for every RSS feed, that has the URL of the home pageSee that the
<link>
element in the<channel>
section links to the URL of the home pageSee that the separator used in the title is the one selected in Yoast SEO > Search Appearance
If you test feeds that have multiple pages and add
?paged=2
to them, e.g. http:https://basic.wordpress.test/category/configurable-responsive-framework/feed/?paged=2, the URL in the<link>
tag and in theLink
header should be e.g. http:https://basic.wordpress.test/category/configurable-responsive-framework/page/2When testing this on yoast.com, be sure to delete
site/core-yoastcom/WordPress/Integration/YoastSEO/Feeds.php
first.Test instructions for QA when the code is in the RC
Quality assurance
Fixes PRODUCT-179