Display a friendly warning on block validation fails.#39126
Closed
delowardev wants to merge 1 commit intoWordPress:trunkfrom
Closed
Display a friendly warning on block validation fails.#39126delowardev wants to merge 1 commit intoWordPress:trunkfrom
delowardev wants to merge 1 commit intoWordPress:trunkfrom
Conversation
Contributor
|
@delowardev Thanks for being proactive about this issue. I'm not sure adding this to the This is one of the things that makes fixing or improving this particular issue difficult, a lot of the code that results in a validation error is intended to be generic. Sorry I haven't been able to offer any other ideas just yet, I'm thinking about it. |
Contributor
Author
|
My bad, I was thinking WordPress-centric here. Now I can see the difficulties; thanks for pointing it out. |
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.
Description
WordPress core injects the
rel=noopenerattribute to the anchor tag that has thetargetattribute; which causes the block validation to fail if the developer doesn't use therel=noopenerin thesavefunction. It's really hard to debug the error by reading the current validation warning.Issues: #38978, #39051
See also: https://github.com/WordPress/WordPress/blob/2ae4784ca0aa4ba0e8e87d9c7c1c22f26b214701/wp-includes/formatting.php#L3236-L3288
Testing Instructions
Screenshots
Types of changes
Checklist:
*.native.jsfiles for terms that need renaming or removal).