diff --git a/wp-includes/class-wp-theme-json.php b/wp-includes/class-wp-theme-json.php
index cbe266b..b7d903f 100644
|
a
|
b
|
class WP_Theme_JSON { |
| 938 | 938 | * @return array The sanitized output. |
| 939 | 939 | */ |
| 940 | 940 | protected static function sanitize( $input, $valid_block_names, $valid_element_names, $valid_variations ) { |
| | 941 | static $input_cache = array(); |
| | 942 | |
| | 943 | $input_cache_key = md5( wp_json_encode( $input ) ); |
| | 944 | if ( isset( $input_cache[ $input_cache_key ] ) ) { |
| | 945 | return $input_cache[ $input_cache_key ]; |
| | 946 | } |
| 941 | 947 | |
| 942 | 948 | $output = array(); |
| 943 | 949 | |
| … |
… |
class WP_Theme_JSON { |
| 1058 | 1064 | } |
| 1059 | 1065 | } |
| 1060 | 1066 | |
| | 1067 | $input_cache[ $input_cache_key ] = $output; |
| 1061 | 1068 | return $output; |
| 1062 | 1069 | } |
| 1063 | 1070 | |