Make WordPress Core


Ignore:
Timestamp:
03/01/2013 05:14:09 PM (12 years ago)
Author:
ryan
Message:

Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/press-this.php

    r23554 r23567  
    9292
    9393// Set Variables
    94 $title = isset( $_GET['t'] ) ? trim( strip_tags( html_entity_decode( stripslashes( $_GET['t'] ) , ENT_QUOTES) ) ) : '';
     94$title = isset( $_GET['t'] ) ? trim( strip_tags( html_entity_decode( wp_unslash( $_GET['t'] ) , ENT_QUOTES) ) ) : '';
    9595
    9696$selection = '';
    9797if ( !empty($_GET['s']) ) {
    98     $selection = str_replace(''', "'", stripslashes($_GET['s']));
     98    $selection = str_replace(''', "'", wp_unslash($_GET['s']));
    9999    $selection = trim( htmlspecialchars( html_entity_decode($selection, ENT_QUOTES) ) );
    100100}
Note: See TracChangeset for help on using the changeset viewer.