Make WordPress Core


Ignore:
Timestamp:
06/22/2021 01:32:42 PM (4 years ago)
Author:
desrosj
Message:

Widgets: Add editor styles to the widgets block editor.

This updates the widgets screen to load the editor styles in the same way as the post editor. This combined with the package updates in [51198] and [51199] ensures that the blocks added to sidebars more accurately reflect what will be displayed on the front end of the site.

Props isabel_brison, noisysocks, andraganescu, audrasjb, jorbin, caseymilne, desrosj.
Fixes #53344. See #53388.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/widgets-form-blocks.php

    r51149 r51200  
    2626
    2727$editor_settings = get_block_editor_settings(
    28     get_legacy_widget_block_editor_settings(),
     28    array_merge( get_legacy_widget_block_editor_settings(), array( 'styles' => get_block_editor_theme_styles() ) ),
    2929    $block_editor_context
    3030);
Note: See TracChangeset for help on using the changeset viewer.