Reuse validation error titles from validated URL screen in block warning notice #4401
Conversation
| const ValidationErrorMessage = ( { title, message, code } ) => { | ||
| if ( message ) { | ||
| return message; | ||
| return message; // @todo It doesn't appear this is ever set? |
There was a problem hiding this comment.
The REST response result doesn't include a message key, so I don't think it's set. I couldn't find any reference to it either in any other React component... maybe @swissspidy could shine a light on this?
There was a problem hiding this comment.
It seems it's only be used in its test:
|
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
|
@googlebot I consent. |
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
(Thanks to PHPStorm for trimming it pre-commit)
…ation-error-titles-to-block-warnings * 'develop' of github.com:ampproject/amp-wp: Remove title tag from AMP SVG icons Use a Tooltip, thanks to Pierre's suggestion Correct failed unit test from dependency Remove @wordpress/nux, as it looks like it's not used anymore Remove DotTip from import statements Remove DotTip, as it caused a console warning Improve AMP preview button in WP 5.4 and with Gutenberg Make phpstan happy Remove multiple instances of div#fb-root Test removal of <p> tag Eliminate unnecessary double loop for XPath query since DOMNodeList is not live Remove phpstan.neon.dist from build Use `nodeName` property Remove registration of Facebook embed handler
Summary
Fixes #3664.
Given a Custom HTML block with this content:
Also fixes the font-family of the list items to also be the system font.
Checklist