PluginProbe
Gutenberg / 14.7.0
Gutenberg v14.7.0
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
gutenberg / lib / compat / wordpress-6.0 / functions.php

functions.php in Gutenberg 14.7.0, at lib/compat/wordpress-6.0/functions.php

28 lines 561 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Generic helper functions.
4 *
5 * @package WordPress
6 * @since 6.0.0
7 */
8
9 if ( ! function_exists( 'wp_recursive_ksort' ) ) {
10 /**
11 * Sorts the keys of an array alphabetically.
12 * The array is passed by reference so it doesn't get returned
13 * which mimics the behaviour of ksort.
14 *
15 * @since 6.0.0
16 *
17 * @param array $array The array to sort, passed by reference.
18 */
19 function wp_recursive_ksort( &$array ) {
20 foreach ( $array as &$value ) {
21 if ( is_array( $value ) ) {
22 wp_recursive_ksort( $value );
23 }
24 }
25 ksort( $array );
26 }
27 }
28