diff --git a/src/wp-admin/includes/misc.php b/src/wp-admin/includes/misc.php
index 06fc294445..5ef44ec259 100644
|
a
|
b
|
function wp_print_theme_file_tree( $tree, $level = 2, $size = 1, $index = 1 ) { |
| 402 | 402 | if ( is_array( $tree ) ) { |
| 403 | 403 | $index = 0; |
| 404 | 404 | $size = count( $tree ); |
| 405 | | |
| | 405 | ksort($tree); |
| 406 | 406 | foreach ( $tree as $label => $theme_file ) : |
| 407 | 407 | ++$index; |
| 408 | 408 | |
| … |
… |
function wp_make_plugin_file_tree( $plugin_editable_files ) { |
| 475 | 475 | foreach ( $plugin_editable_files as $plugin_file ) { |
| 476 | 476 | $list = explode( '/', preg_replace( '#^.+?/#', '', $plugin_file ) ); |
| 477 | 477 | $last_dir = &$tree_list; |
| 478 | | |
| | 478 | |
| 479 | 479 | foreach ( $list as $dir ) { |
| 480 | 480 | $last_dir =& $last_dir[ $dir ]; |
| 481 | 481 | } |
| … |
… |
function wp_print_plugin_file_tree( $tree, $label = '', $level = 2, $size = 1, $ |
| 504 | 504 | if ( is_array( $tree ) ) { |
| 505 | 505 | $index = 0; |
| 506 | 506 | $size = count( $tree ); |
| 507 | | |
| | 507 | ksort($tree); |
| 508 | 508 | foreach ( $tree as $label => $plugin_file ) : |
| 509 | 509 | ++$index; |
| 510 | 510 | |