From 912ede41760323425a15c59c4d4220aa2d8ce98f Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sat, 23 Apr 2011 13:01:52 +0000 Subject: [PATCH] Ensure all theme searching is done case-insensitive. Props solarissmoke for initial path. Fixes #17059 git-svn-id: https://develop.svn.wordpress.org/trunk@17691 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-themes-list-table.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-themes-list-table.php b/wp-admin/includes/class-wp-themes-list-table.php index 91e1d254a1..5cb7648e67 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 ); }