Skip to content

Commit 0e46e43

Browse files
ramonjdwestonruter
andauthored
Update src/wp-includes/class-wp-theme-json.php
Co-authored-by: Weston Ruter <[email protected]>
1 parent 82fd70a commit 0e46e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3706,7 +3706,7 @@ private static function preserve_valid_typed_settings( $input, &$output, $schema
37063706
// Validate boolean type markers.
37073707
if ( is_bool( $schema_value ) ) {
37083708
$value = _wp_array_get( $input, $current_path, null );
3709-
if ( null !== $value && is_bool( $value ) ) {
3709+
if ( is_bool( $value ) ) {
37103710
_wp_array_set( $output, $current_path, $value ); // Preserve boolean value.
37113711
}
37123712
} elseif ( is_array( $schema_value ) ) {

0 commit comments

Comments
 (0)