Conversation
Pull Request Test Coverage Report for Build eac11f3ba12c5b8b4dd7de1fd844f63ba3045242Details
💛 - Coveralls |
…s earlier than the creation time
Comment on lines
+64
to
+65
| $data['mainEntityOfPage'] = [ '@id' => $this->context->main_schema_id ]; | ||
| $data['wordCount'] = $this->word_count( $this->context->post->post_content, $this->context->post->post_title ); |
Member
There was a problem hiding this comment.
Not sure I get why these were moved out of the array above?
Contributor
Author
There was a problem hiding this comment.
So that we keep the same order of the node's attributes.
Because it could be not as readable if we had dateModified far from datePublished
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:
article:modified_timemeta tag would show an earlier time than thearticle:published_timemeta tag for scheduled posts.Relevant technical choices:
Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
Without this PR:
article:modified_timemeta tag would appear and it would be an earlier time than thearticle:published_timemeta tag, which is wrongdateModifiedattribute of the Article and the Webpage nodes would appear and it would be an earlier time than thedatePublishedattribute of those nodes. (make sure you have filled in all Site Representation info to make theArticlenode appear)With this PR:
article:modified_timemeta tag would not appear at alldateModifiedattributes in the Article and the Webpage nodes.Also:
article:modified_timeand nodateModifiedattribute of the Article and the Webpage nodes in the schema.article:modified_timetags anddateModifiedattributes equal to-0001-11-30T00:00:00+00:00Check impact in News SEO:
/sitemap_index.xml(that post should have been published within the past 48 hours)/news-sitemap.xmlentry/news-sitemap.xmland confirm that the Publication Date for the most recent article is the same with the Last Mod of the/news-sitemap.xmlentry of the above steparticle:published_timemeta tag and thedatePublishedattributes in the schemaRelevant 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_date_gmtandpost_modified_gmt), it will stop havingdatePublishedattributes in the schemadatePublishedremoved with this PR. That depends on whetherpost_date_gmtandpost_modified_gmtare the same in wp_post for that post (they might have a second difference depending how slow is your machine when saving the post)UI changes
Other environments
[shopify-seo], added test instructions for Shopify and attached theShopifylabel to this PR.Documentation
Quality assurance
Innovation
innovationlabel.Fixes #