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/edit-tags.php

    r23554 r23563  
    165165default:
    166166if ( ! empty($_REQUEST['_wp_http_referer']) ) {
    167     $location = remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) );
     167    $location = remove_query_arg( array('_wp_http_referer', '_wpnonce'), wp_unslash($_SERVER['REQUEST_URI']) );
    168168
    169169    if ( ! empty( $_REQUEST['paged'] ) )
     
    266266<h2><?php echo esc_html( $title );
    267267if ( !empty($_REQUEST['s']) )
    268     printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( stripslashes($_REQUEST['s']) ) ); ?>
     268    printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?>
    269269</h2>
    270270
Note: See TracChangeset for help on using the changeset viewer.