Make WordPress Core


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

    r23554 r23563  
    5353                }
    5454
    55                 $search = !empty( $_REQUEST['s'] ) ? trim( stripslashes( $_REQUEST['s'] ) ) : '';
     55                $search = !empty( $_REQUEST['s'] ) ? trim( wp_unslash( $_REQUEST['s'] ) ) : '';
    5656
    5757                $args = array(
     
    6262
    6363                if ( !empty( $_REQUEST['orderby'] ) )
    64                         $args['orderby'] = trim( stripslashes( $_REQUEST['orderby'] ) );
     64                        $args['orderby'] = trim( wp_unslash( $_REQUEST['orderby'] ) );
    6565
    6666                if ( !empty( $_REQUEST['order'] ) )
    67                         $args['order'] = trim( stripslashes( $_REQUEST['order'] ) );
     67                        $args['order'] = trim( wp_unslash( $_REQUEST['order'] ) );
    6868
    6969                $this->callback_args = $args;
Note: See TracChangeset for help on using the changeset viewer.