]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-themes-list-table.php
Wordpress 3.2
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-themes-list-table.php
index 91e1d254a1fb085e25e6e6a922db23316d2a49af..5cb7648e673a62001fed80dc3c7c2c5b63a2a206 100644 (file)
@@ -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 );
                }