From d552d794f5cb68be062bd6c08720374efca812f9 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Tue, 31 Jan 2023 15:17:57 +0400 Subject: [PATCH] Use string default --- lib/class-wp-theme-json-gutenberg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/class-wp-theme-json-gutenberg.php b/lib/class-wp-theme-json-gutenberg.php index a67964ba34517..1ee24f86969ba 100644 --- a/lib/class-wp-theme-json-gutenberg.php +++ b/lib/class-wp-theme-json-gutenberg.php @@ -1092,7 +1092,7 @@ public function get_stylesheet( $types = array( 'variables', 'styles', 'presets' */ public function get_custom_css() { // Add the global styles root CSS. - $stylesheet = _wp_array_get( $this->theme_json, array( 'styles', 'css' ) ); + $stylesheet = _wp_array_get( $this->theme_json, array( 'styles', 'css' ), '' ); // Add the global styles block CSS. if ( isset( $this->theme_json['styles']['blocks'] ) ) {