Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

skorasaurus
Copy link

@skorasaurus skorasaurus commented Oct 19, 2021

This is based on WordPress/gutenberg#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 #10

The function was later renamed in WordPress/gutenberg#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.

class-block-unit-test.php Outdated Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant