Make WordPress Core


Ignore:
Timestamp:
03/01/2023 11:41:53 AM (20 months ago)
Author:
gziolo
Message:

Editor: Correctly merge custom CSS into global styles

Update the get_block_editor_settings function and merge custom CSS directly into the $global_styles array.

Fixes #57833.
Props Mamaduka, poena, sakibmd.

File:
1 edited

Legend:

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

    r55368 r55438  
    419419         * entered by users does not break other global styles.
    420420         */
    421         $editor_settings['styles'][] = array(
     421        $global_styles[] = array(
    422422            'css'            => wp_get_global_styles_custom_css(),
    423423            '__unstableType' => 'user',
Note: See TracChangeset for help on using the changeset viewer.