WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/01/2013 05:00:25 PM (7 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-themes-list-table.php

    r23554 r23563  
    2929
    3030        if ( ! empty( $_REQUEST['s'] ) )
    31             $this->search_terms = array_unique( array_filter( array_map( 'trim', explode( ',', strtolower( stripslashes( $_REQUEST['s'] ) ) ) ) ) );
     31            $this->search_terms = array_unique( array_filter( array_map( 'trim', explode( ',', strtolower( wp_unslash( $_REQUEST['s'] ) ) ) ) ) );
    3232
    3333        if ( ! empty( $_REQUEST['features'] ) )
     
    236236     */
    237237     function _js_vars( $extra_args = array() ) {
    238         $search_string = isset( $_REQUEST['s'] ) ? esc_attr( stripslashes( $_REQUEST['s'] ) ) : '';
     238        $search_string = isset( $_REQUEST['s'] ) ? esc_attr( wp_unslash( $_REQUEST['s'] ) ) : '';
    239239
    240240        $args = array(
Note: See TracChangeset for help on using the changeset viewer.