diff --git a/wp-includes/class-wp-theme-json.php b/wp-includes/class-wp-theme-json.php index 749ee90c0c..4f5627a790 100644 --- a/wp-includes/class-wp-theme-json.php +++ b/wp-includes/class-wp-theme-json.php @@ -1709,7 +1709,12 @@ class WP_Theme_JSON { * @return string|array Style property value. */ protected static function get_property_value( $styles, $path, $theme_json = null ) { - $value = _wp_array_get( $styles, $path ); + $value = _wp_array_get( $styles, $path, '' ); + + if ( '' === $value || null === $value ) { + // No need to process the value further. + return ''; + } /* * This converts references to a path to the value at that path diff --git a/wp-includes/version.php b/wp-includes/version.php index 69b0de7a79..d25e0081bc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-beta2-54361'; +$wp_version = '6.1-beta2-54362'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.