Skip to content

Conversation

danielbachhuber
Copy link
Member

Core and the Gutenberg plugin hook a register_theme_block_patterns() function onto init. When a theme with block patterns isn't loaded, the function can cause some errors.

Because --skip-themes isn't formally supported by core, let's incorporate another hack for block pattern theme compatibility. Hopefully it doesn't come up again for another 10 years.

Fixes #5736

Core and the Gutenberg plugin hook a `register_theme_block_patterns()`
function onto `init`. When a theme with block patterns isn't loaded, the
function can cause some errors.

Because `--skip-themes` isn't formally supported by core, let's
incorporate another hack for block pattern theme compatibility.
Hopefully it doesn't come up again for another 10 years.
@danielbachhuber danielbachhuber merged commit 89be15b into main Feb 8, 2023
@danielbachhuber danielbachhuber deleted the 5736-skip-themes-block-patterns branch February 8, 2023 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block theme pattern is still loaded even when --skip-themes is used
2 participants