Make WordPress Core


Ignore:
Timestamp:
05/20/2022 11:40:07 AM (3 years ago)
Author:
gziolo
Message:

Editor: Fix opinionated block styles loading in editor

Related changes in Gutenberg: https://github.com/WordPress/gutenberg/pull/40937.

Backport for WordPress 6.0 RC 4.

Props jffng.
See #55567.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-editor.php

    r53331 r53419  
    310310        'wp-block-editor',
    311311        'wp-block-library',
    312         'wp-block-library-theme',
    313312        'wp-edit-blocks',
    314313    );
     314
     315    if ( current_theme_supports( 'wp-block-styles' ) ) {
     316        $style_handles[] = 'wp-block-library-theme';
     317    }
    315318
    316319    if ( 'widgets.php' === $pagenow || 'customize.php' === $pagenow ) {
Note: See TracChangeset for help on using the changeset viewer.