WordPress.org

Make WordPress Core

Changeset 17691


Ignore:
Timestamp:
04/23/2011 01:01:52 PM (7 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-themes-list-table.php

    r17435 r17691  
    2525        $themes = get_allowed_themes();
    2626
    27         $search = !empty( $_REQUEST['s'] ) ? trim( stripslashes( $_REQUEST['s'] ) ) : '';
    28 
    29         if ( '' !== $search ) {
     27        if ( ! empty( $_REQUEST['s'] ) ) {
     28            $search = strtolower( stripslashes( $_REQUEST['s'] ) );
    3029            $this->search = array_merge( $this->search, array_filter( array_map( 'trim', explode( ',', $search ) ) ) );
    3130            $this->search = array_unique( $this->search );
Note: See TracChangeset for help on using the changeset viewer.