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:
parent
e9d290a104
commit
12995d49e4
|
@ -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
|
* Add the custom CSS as a separate stylesheet so any invalid CSS
|
||||||
* entered by users does not break other global styles.
|
* entered by users does not break other global styles.
|
||||||
*/
|
*/
|
||||||
$editor_settings['styles'][] = array(
|
$global_styles[] = array(
|
||||||
'css' => wp_get_global_styles_custom_css(),
|
'css' => wp_get_global_styles_custom_css(),
|
||||||
'__unstableType' => 'user',
|
'__unstableType' => 'user',
|
||||||
'isGlobalStyles' => true,
|
'isGlobalStyles' => true,
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue