block-unit-test icon indicating copy to clipboard operation
block-unit-test copied to clipboard

add conditional for detecting wide-align support declared through theme.json

Open skorasaurus opened this issue 3 years ago • 0 comments

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:

  1. Use twentytwentyone theme;
  2. delete add_theme_support('align-wide') line from functions.php of that theme
  3. add this theme.json to theme folder (it creates support for wide-align block)
  4. build block-unit-test from this PR; activate plugin.

skorasaurus avatar Oct 19 '21 18:10 skorasaurus