Make WordPress Core

Ticket #61752: 61752.patch

File 61752.patch, 1018 bytes (added by iflairwebtechnologies, 2 months ago)
  • src/wp-admin/includes/misc.php

    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 ) { 
    402402        if ( is_array( $tree ) ) {
    403403                $index = 0;
    404404                $size  = count( $tree );
    405 
     405                ksort($tree);
    406406                foreach ( $tree as $label => $theme_file ) :
    407407                        ++$index;
    408408
    function wp_make_plugin_file_tree( $plugin_editable_files ) { 
    475475        foreach ( $plugin_editable_files as $plugin_file ) {
    476476                $list     = explode( '/', preg_replace( '#^.+?/#', '', $plugin_file ) );
    477477                $last_dir = &$tree_list;
    478 
     478               
    479479                foreach ( $list as $dir ) {
    480480                        $last_dir =& $last_dir[ $dir ];
    481481                }
    function wp_print_plugin_file_tree( $tree, $label = '', $level = 2, $size = 1, $ 
    504504        if ( is_array( $tree ) ) {
    505505                $index = 0;
    506506                $size  = count( $tree );
    507 
     507                ksort($tree);
    508508                foreach ( $tree as $label => $plugin_file ) :
    509509                        ++$index;
    510510