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-plugins-list-table.php

    r23554 r23563  
    2323
    2424        if ( isset($_REQUEST['s']) )
    25             $_SERVER['REQUEST_URI'] = add_query_arg('s', stripslashes($_REQUEST['s']) );
     25            $_SERVER['REQUEST_URI'] = add_query_arg('s', wp_unslash($_REQUEST['s']) );
    2626
    2727        $page = $this->get_pagenum();
     
    141141        static $term;
    142142        if ( is_null( $term ) )
    143             $term = stripslashes( $_REQUEST['s'] );
     143            $term = wp_unslash( $_REQUEST['s'] );
    144144
    145145        foreach ( $plugin as $value )
Note: See TracChangeset for help on using the changeset viewer.