Ensure all theme searching is done case-insensitive. Props solarissmoke for initial path. Fixes #17059

git-svn-id: http://svn.automattic.com/wordpress/trunk@17691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2011-04-23 13:01:52 +00:00
parent f1b2f79add
commit 26cc29597b
1 changed files with 2 additions and 3 deletions

View 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 );
}