Hidden patterns should use false instead of no for the inserter property#580
Hidden patterns should use false instead of no for the inserter property#580benoitchantre wants to merge 1 commit intoWordPress:trunkfrom
Conversation
|
Thank you for your valuable contribution. |
|
Hi, It would absolutely have been easier for the developers if the two methods were more consistent, but now it has already been documented as yes/no and not true/false and it will need to continue to support yes/no. It seems something has broken in 6.4. I would like to learn if this is only something on my local install, or if it can be reproduced, because then we have to create a new issue in the Gutenberg repository. With 6.4 beta 2, current nightly: If I add |
|
Thank you @carolinan for the explanation.
Are you using the I can't reproduce that when |
Description
Fixes #578.
The official documentation says that
falseshould be used instead ofnofor theinserterproperty.https://developer.wordpress.org/block-editor/reference-guides/block-api/block-patterns/
Testing Instructions
Check that hidden patterns are not available from the inserter.
Contributors
benoitchantre