Skip to content

Commit d3a355f

Browse files
committed
Code Quality: Remove unnecessary array check for value return in WP_Theme_JSON::get_property_value().
Developed in #10928 Follow-up to WordPress/gutenberg@ccd529d7a6af Props soean, mukesh27, westonruter. Fixes #64636. git-svn-id: https://develop.svn.wordpress.org/trunk@61640 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 208ec4d commit d3a355f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/wp-includes/class-wp-theme-json.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2559,10 +2559,6 @@ protected static function get_property_value( $styles, $path, $theme_json = null
25592559
}
25602560
}
25612561

2562-
if ( is_array( $value ) ) {
2563-
return $value;
2564-
}
2565-
25662562
return $value;
25672563
}
25682564

0 commit comments

Comments
 (0)