X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/99a64b9fd0d5ebb21c33c3a0b5865e9c412b430c..5aa86a9053fb0fa15846bb60aac2fb8fdfff524a:/wp-admin/includes/class-wp-theme-install-list-table.php diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php index 7e44267c..66f7797c 100644 --- a/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/wp-admin/includes/class-wp-theme-install-list-table.php @@ -22,7 +22,7 @@ class WP_Theme_Install_List_Table extends WP_List_Table { $paged = $this->get_pagenum(); - $per_page = 30; + $per_page = 36; // These are the tabs which are shown on the page, $tabs = array(); @@ -130,7 +130,7 @@ class WP_Theme_Install_List_Table extends WP_List_Table { // wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' ); ?> -
+
@@ -139,13 +139,11 @@ class WP_Theme_Install_List_Table extends WP_List_Table {
- - - display_rows_or_placeholder(); ?> - -
+
+ display_rows_or_placeholder(); ?> +
-
+
pagination( 'bottom' ); ?>
@@ -155,30 +153,16 @@ class WP_Theme_Install_List_Table extends WP_List_Table { function display_rows() { $themes = $this->items; + $theme_names = array_keys( $themes ); - $rows = ceil( count( $themes ) / 3 ); - $table = array(); - $theme_keys = array_keys( $themes ); - for ( $row = 1; $row <= $rows; $row++ ) - for ( $col = 1; $col <= 3; $col++ ) - $table[$row][$col] = array_shift( $theme_keys ); - - foreach ( $table as $row => $cols ) { - echo "\t\n"; - foreach ( $cols as $col => $theme_index ) { + foreach ( $theme_names as $theme_name ) { $class = array( 'available-theme' ); - if ( $row == 1 ) $class[] = 'top'; - if ( $col == 1 ) $class[] = 'left'; - if ( $row == $rows ) $class[] = 'bottom'; - if ( $col == 3 ) $class[] = 'right'; ?> - - \n"; - } // end foreach $table +
+