Changeset 53129 for trunk/src/wp-includes/functions.php
- Timestamp:
- 04/11/2022 10:36:02 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r53118 r53129 8441 8441 return abs( (float) $expected - (float) $actual ) <= $precision; 8442 8442 } 8443 8444 /** 8445 * Sorts the keys of an array alphabetically. 8446 * The array is passed by reference so it doesn't get returned 8447 * which mimics the behaviour of ksort. 8448 * 8449 * @since 6.0.0 8450 * 8451 * @param array $array The array to sort, passed by reference. 8452 */ 8453 function wp_recursive_ksort( &$array ) { 8454 foreach ( $array as &$value ) { 8455 if ( is_array( $value ) ) { 8456 wp_recursive_ksort( $value ); 8457 } 8458 } 8459 ksort( $array ); 8460 }
Note: See TracChangeset
for help on using the changeset viewer.