Make WordPress Core


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

    r23554 r23563  
    171171            // I toyed with this, but decided against it. Leaving it in here in case anyone thinks it is a good idea. ~ Mark
    172172            if ( !empty( $_REQUEST['s'] ) )
    173                 $link = add_query_arg( 's', esc_attr( stripslashes( $_REQUEST['s'] ) ), $link );
     173                $link = add_query_arg( 's', esc_attr( wp_unslash( $_REQUEST['s'] ) ), $link );
    174174            */
    175175            $status_links[$status] = "<a href='$link'$class>" . sprintf(
Note: See TracChangeset for help on using the changeset viewer.