Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a custom version of the enqueue_block_styles_assets function
The WordPress `enqueue_block_styles_assets` function contains a bug which may lead to fatal errors for full site editing enabled themes which register custom styles and are missing a HTML template for request (for instance 404.html). The bug was patched in WordPress core ( see https://core.trac.wordpress.org/ticket/54323 ), but since the Gutenberg 11.8.0 introduces the following line: ``` add_filter( 'should_load_separate_core_block_assets', '__return_true' ); ``` it also should patch the issue, in order to prevent fatal errors for the themes matching the above mentioned criteria. See WordPress#35912 and WordPress#35903
- Loading branch information