Conversation
|
A merge conflict has been detected for the proposed code changes in this PR. Please resolve the conflict by either rebasing the PR or merging in changes from the base branch. |
6b0fb76 to
1829cbd
Compare
Pull Request Test Coverage Report for Build 9c00443b1f830383e79e52807964591ec0d9aa13Details
💛 - Coveralls |
thijsoo
requested changes
Jun 4, 2025
| * Returns the most recently modified cornerstone content of a post type. | ||
| * | ||
| * @param string $post_type The post type. | ||
| * @param int $limit The maximum number of posts to return. |
| * | ||
| * @return Indexable[] array of indexables. | ||
| */ | ||
| public function get_recent_cornerstone_per_post_type( string $post_type, ?int $limit ) { |
Contributor
There was a problem hiding this comment.
I would say for instead of per since Per suggests a list of different post types and this is for one.
…ne-content-has-priority-for-the-postpagecpt-list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
Relevant technical choices:
post__not_inarguments inget_posts()as that would make the query much slower. Instead, we retrieve 5 posts anyway and manually exclude them if they are already fetched before because they are cornerstone.Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
Allow search engines to show this contentin search results setting is set tonoAllow search engines to show this contenttono, edit another post and generate the fileadd_filter( 'Yoast\WP\SEO\should_index_indexables', '__return_false' );snippet and reset indexables. That way we have disabled indexable creation, so the cornerstone content wont be able to be retrievedAllow search engines to show this contentin search results setting is set tonoAllow search engines to show this contenttono, edit another page and generate the fileRelevant test scenarios
Test instructions for QA when the code is in the RC
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
Post Listssection of Add content in the llms.txt file #22257UI changes
Other environments
[shopify-seo], added test instructions for Shopify and attached theShopifylabel to this PR.Documentation
Quality assurance
Innovation
innovationlabel.Fixes https://github.com/Yoast/reserved-tasks/issues/578