Block Validation Error – Plugin is broken
-
Hi,
In using this plugin on WordPress 6.1.8, the “Flip Box” block breaks upon being saved. The javascript console throws out an error message saying ‘Block validation: Block validation failed for
fest-ultra-addons-gutenberg/flip-box‘.I was able to determine that the cause is the Button component’s target being set to “_blank”. For security reasons, WP adds a rel=”noopener noreferrer” attribute to all anchor tags which open in a new window. Your block definition does not have a rel tag in as part of its attributes and thus it fails validation, which blocks the user from editing the block after saving.
Adding the rel attribute and re-building the components should do the trick!
The topic ‘Block Validation Error – Plugin is broken’ is closed to new replies.