Code Quality: Remove unnecessary array check for value return in WP_Theme_JSON::get_property_value().

Developed in https://github.com/WordPress/wordpress-develop/pull/10928

Follow-up to https://github.com/WordPress/gutenberg/commit/ccd529d7a6af

Props soean, mukesh27, westonruter.
Fixes #64636.

Built from https://develop.svn.wordpress.org/trunk@61640


git-svn-id: http://core.svn.wordpress.org/trunk@60951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter
2026-02-13 20:54:46 +00:00
parent 9d27805012
commit 1697d0d649
2 changed files with 1 additions and 5 deletions

View File

@@ -2559,10 +2559,6 @@ class WP_Theme_JSON {
}
}
if ( is_array( $value ) ) {
return $value;
}
return $value;
}

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.0-alpha-61639';
$wp_version = '7.0-alpha-61640';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.