Changeset 55127 for trunk/src/wp-includes/class-wp-theme-json-resolver.php
- Timestamp:
- 01/24/2023 03:35:59 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json-resolver.php
r55086 r55127 374 374 * When given an array, this will remove any keys with the name `//`. 375 375 * 376 * @param array $ array The array to filter.376 * @param array $input_array The array to filter. 377 377 * @return array The filtered array. 378 378 */ 379 private static function remove_json_comments( $ array ) {380 unset( $ array['//'] );381 foreach ( $ array as $k => $v ) {379 private static function remove_json_comments( $input_array ) { 380 unset( $input_array['//'] ); 381 foreach ( $input_array as $k => $v ) { 382 382 if ( is_array( $v ) ) { 383 $ array[ $k ] = static::remove_json_comments( $v );384 } 385 } 386 387 return $ array;383 $input_array[ $k ] = static::remove_json_comments( $v ); 384 } 385 } 386 387 return $input_array; 388 388 } 389 389
Note: See TracChangeset
for help on using the changeset viewer.