X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f9001779751f83dc8a10e478bfecb4d8dd5f964c..341dfbb66f24f5145174c373267f889c31615cc5:/wp-admin/includes/class-wp-themes-list-table.php diff --git a/wp-admin/includes/class-wp-themes-list-table.php b/wp-admin/includes/class-wp-themes-list-table.php index 91e1d254..4839b504 100644 --- a/wp-admin/includes/class-wp-themes-list-table.php +++ b/wp-admin/includes/class-wp-themes-list-table.php @@ -24,9 +24,8 @@ class WP_Themes_List_Table extends WP_List_Table { $themes = get_allowed_themes(); - $search = !empty( $_REQUEST['s'] ) ? trim( stripslashes( $_REQUEST['s'] ) ) : ''; - - if ( '' !== $search ) { + if ( ! empty( $_REQUEST['s'] ) ) { + $search = strtolower( stripslashes( $_REQUEST['s'] ) ); $this->search = array_merge( $this->search, array_filter( array_map( 'trim', explode( ',', $search ) ) ) ); $this->search = array_unique( $this->search ); } @@ -48,7 +47,7 @@ class WP_Themes_List_Table extends WP_List_Table { unset( $themes[$ct->name] ); uksort( $themes, "strnatcasecmp" ); - $per_page = 15; + $per_page = 24; $page = $this->get_pagenum(); $start = ( $page - 1 ) * $per_page; @@ -93,7 +92,7 @@ class WP_Themes_List_Table extends WP_List_Table { if ( $this->get_pagination_arg( 'total_pages' ) <= 1 ) return; ?> -
+
pagination( $which ); ?>
@@ -106,11 +105,9 @@ class WP_Themes_List_Table extends WP_List_Table { ?> tablenav( 'top' ); ?> - - - display_rows_or_placeholder(); ?> - -
+
+ display_rows_or_placeholder(); ?> +
tablenav( 'bottom' ); ?> $cols ) { -?> - - $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'; -?> - - +
+ $theme_name ) { - - - - +