WordPress.org

Make WordPress Core

Ticket #9570: r10990-themes-case-sensitive-sort.diff

File r10990-themes-case-sensitive-sort.diff, 363 bytes (added by demetris, 6 years ago)

Case-insensitive sorting of themes in themes.php

  • wp-admin/themes.php

     
    4646$themes = get_themes(); 
    4747$ct = current_theme_info(); 
    4848 
    49 ksort( $themes ); 
     49uksort( $themes, "strnatcasecmp" ); 
    5050$theme_total = count( $themes ); 
    5151$per_page = 15; 
    5252