Ticket #11164: themesort.diff
| File themesort.diff, 892 bytes (added by uglyrobot, 4 years ago) |
|---|
-
wp-admin/themes.php
63 63 unset($themes[$ct->name]); 64 64 65 65 uksort( $themes, "strnatcasecmp" ); 66 $themes = apply_filters('sort_all_themes', $themes); 66 67 $theme_total = count( $themes ); 67 68 $per_page = 15; 68 69 … … 173 174 174 175 $theme_names = array_keys($themes); 175 176 natcasesort($theme_names); 177 $theme_names = apply_filters('sort_paged_themes', $theme_names); 176 178 177 179 $table = array(); 178 180 $rows = ceil(count($theme_names) / 3); … … 185 187 <tr> 186 188 <?php 187 189 foreach ( $cols as $col => $theme_name ) { 188 $class = array('available-theme' );190 $class = array('available-theme', $themes[$theme_name]['Template']); 189 191 if ( $row == 1 ) $class[] = 'top'; 190 192 if ( $col == 1 ) $class[] = 'left'; 191 193 if ( $row == $rows ) $class[] = 'bottom';
