block-unit-test
block-unit-test copied to clipboard
add conditional for detecting wide-align support declared through theme.json
This is based on https://github.com/WordPress/gutenberg/pull/34843 which has been merged and is included in wordpress 5.9
I've tested it and the wide-aligned blocks will appear on the page. Additional background at https://github.com/godaddy-wordpress/block-unit-test/issues/10
The function was later renamed in https://github.com/WordPress/gutenberg/pull/36907 and required an additional commit.
To test:
- Use twentytwentyone theme;
- delete add_theme_support('align-wide') line from functions.php of that theme
- add this theme.json to theme folder (it creates support for wide-align block)
- build block-unit-test from this PR; activate plugin.