Skip to content

Commit 311eafb

Browse files
committed
Refactor WP_Theme_JSON to use self instead of static for method calls in preserve_valid_typed_settings. This change enhances consistency in method referencing within the class.
1 parent bdfae6d commit 311eafb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3710,7 +3710,7 @@ private static function preserve_valid_typed_settings( $input, &$output, $schema
37103710
_wp_array_set( $output, $current_path, $value ); // Preserve boolean value.
37113711
}
37123712
} elseif ( is_array( $schema_value ) ) {
3713-
static::preserve_valid_typed_settings( $input, $output, $schema_value, $current_path ); // Recurse into nested structure.
3713+
self::preserve_valid_typed_settings( $input, $output, $schema_value, $current_path ); // Recurse into nested structure.
37143714
}
37153715
}
37163716
}
@@ -3775,7 +3775,7 @@ protected static function remove_insecure_settings( $input ) {
37753775
static::remove_indirect_properties( $input, $output );
37763776

37773777
// Preserve all valid settings that have type markers in VALID_SETTINGS.
3778-
static::preserve_valid_typed_settings( $input, $output, static::VALID_SETTINGS );
3778+
self::preserve_valid_typed_settings( $input, $output, static::VALID_SETTINGS );
37793779

37803780
return $output;
37813781
}

0 commit comments

Comments
 (0)