[Discussion]: gutenberg_block_has_support
validations
#32146
Labels
[Type] Discussion
For issues that are high-level and not yet ready to implement.
While adding some unit tests for
gutenberg_block_has_support
incore
here: WordPress/wordpress-develop#1280, I found it pretty weird that we just check if the value of asupports
flag can return true even if as anempty array
here: https://github.com/WordPress/gutenberg/blob/trunk/lib/blocks.php#L413Should this return true as it does now? Should we add some more basic validations?
Example test that passes with an empty array:
The text was updated successfully, but these errors were encountered: