WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/01/2013 05:00:25 PM (9 years ago)
Author:
ryan
Message:

Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().

see #21767

File:
1 edited

Legend:

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

    r23554 r23563  
    2525        $search_string = '';
    2626        if ( ! empty( $_REQUEST['s'] ) ){
    27             $search_string = strtolower( stripslashes( $_REQUEST['s'] ) );
     27            $search_string = strtolower( wp_unslash( $_REQUEST['s'] ) );
    2828            $search_terms = array_unique( array_filter( array_map( 'trim', explode( ',', $search_string ) ) ) );
    2929        }
     
    6060        switch ( $tab ) {
    6161            case 'search':
    62                 $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : 'term';
     62                $type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term';
    6363                switch ( $type ) {
    6464                    case 'tag':
Note: See TracChangeset for help on using the changeset viewer.