You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally reported in the support forum. When the All in One SEO Pack plugin is active and you view a single post, you'll see that there is no validation error in the admin bar. However, once you click to Validate then you'll see a validation error reported:
The problem is that source stack comments are erroneously getting injected into the script.
Expected Behaviour
Comments should be stripped from JSON scripts when validating.
Given that <!-- appearing anywhere in JSON is also a validation error, the fix here could be also to encode such hyphens as escape sequences. This would prevent issues like #3935 from occurring. Nevertheless, comments as a whole should also be removed to account for source stack comments being injected during validation.
Bug Description
Originally reported in the support forum. When the All in One SEO Pack plugin is active and you view a single post, you'll see that there is no validation error in the admin bar. However, once you click to Validate then you'll see a validation error reported:
The problem is that source stack comments are erroneously getting injected into the
script
.Expected Behaviour
Comments should be stripped from JSON scripts when validating.
Steps to reproduce
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: