Ignore WordPress core when there is another error source in block editor AMP sidebar #6667
Labels
Bug
Something isn't working
Changelogged
Whether the issue/PR has been added to release notes.
P0
High priority
Validation
Milestone
Bug Description
When a plugin generates a validation error by rendering invalid code in the block editor, the AMP Validation sidebar says WordPress core is the error source:
It seems the logic in the editor sidebar needs to be updated to treat Gutenberg like WordPress core, and also to ignore WordPress core when there is another source (e.g. a theme/plugin).
See: #6610 (comment)
Steps to reproduce
[bad-tag-shortcode]
(via the Shortcode block).<bad-tag-shortcode>
error:Expected Behaviour
The logic in the editor sidebar needs to be updated to treat Gutenberg like WordPress core, and also to ignore WordPress core when there is another source (e.g. a theme/plugin).
Screenshots
No response
PHP Version
No response
Plugin Version
2.2.0-alpha
AMP plugin template mode
Transitional
WordPress Version
No response
Site Health
No response
Gutenberg Version
No response
OS(s) Affected
No response
Browser(s) Affected
No response
Device(s) Affected
No response
Acceptance Criteria
No response
Implementation Brief
No response
QA Testing Instructions
No response
Demo
No response
Changelog Entry
No response
The text was updated successfully, but these errors were encountered: