From e9478c8b4c5051f5a6f2e86c8f164972722f767f Mon Sep 17 00:00:00 2001 From: ramon Date: Fri, 16 Aug 2024 09:30:53 +1000 Subject: [PATCH] This code block was removed in https://github.com/WordPress/gutenberg/pull/64128 --- src/wp-includes/class-wp-theme-json.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index 9bef842db836e..cbe266bfad0cc 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -2462,10 +2462,6 @@ protected static function get_property_value( $styles, $path, $theme_json = null * the URL takes precedence and the ref is ignored. */ if ( is_array( $value ) && isset( $value['ref'] ) ) { - if ( isset( $value['url'] ) ) { - unset( $value['ref'] ); - return $value; - } $value_path = explode( '.', $value['ref'] ); $ref_value = _wp_array_get( $theme_json, $value_path ); // Background Image refs can refer to a string or an array containing a URL string.