wp core update 6.6
This commit is contained in:
@@ -814,6 +814,7 @@ function get_block_editor_theme_styles() {
|
||||
* Returns the classic theme supports settings for block editor.
|
||||
*
|
||||
* @since 6.2.0
|
||||
* @since 6.6.0 Add support for 'editor-spacing-sizes' theme support.
|
||||
*
|
||||
* @return array The classic theme supports settings.
|
||||
*/
|
||||
@@ -844,5 +845,10 @@ function get_classic_theme_supports_block_editor_settings() {
|
||||
$theme_settings['gradients'] = $gradient_presets;
|
||||
}
|
||||
|
||||
$spacing_sizes = current( (array) get_theme_support( 'editor-spacing-sizes' ) );
|
||||
if ( false !== $spacing_sizes ) {
|
||||
$theme_settings['spacingSizes'] = $spacing_sizes;
|
||||
}
|
||||
|
||||
return $theme_settings;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user