Skip to content

Commit

Permalink
This code block was removed in WordPress/gutenberg#64128
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Aug 15, 2024
1 parent a4caf72 commit 6d88660
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/wp-includes/class-wp-theme-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6d88660

Please sign in to comment.