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
This commit is contained in:
Dion Hulse 2011-04-23 13:01:52 +00:00
parent 66567ad1ab
commit 912ede4176

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