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.


Built from https://develop.svn.wordpress.org/trunk@55438


git-svn-id: http://core.svn.wordpress.org/trunk@54971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
gziolo 2023-03-01 11:43:20 +00:00
parent e9d290a104
commit 12995d49e4
2 changed files with 2 additions and 2 deletions

View File

@ -418,7 +418,7 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex
* Add the custom CSS as a separate stylesheet so any invalid CSS
* entered by users does not break other global styles.
*/
$editor_settings['styles'][] = array(
$global_styles[] = array(
'css' => wp_get_global_styles_custom_css(),
'__unstableType' => 'user',
'isGlobalStyles' => true,

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.2-beta3-55437';
$wp_version = '6.2-beta3-55438';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.