Make WordPress Core


Ignore:
Timestamp:
03/03/2013 04:30:38 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 #WP21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r23555 r23591  
    14241424        $gpc = stripslashes($gpc);
    14251425
    1426     return esc_sql($gpc);
     1426    return wp_slash($gpc);
    14271427}
    14281428
     
    17201720    $text = stripslashes($text);
    17211721    $text = preg_replace_callback('|<a (.+?)>|i', 'wp_rel_nofollow_callback', $text);
    1722     $text = esc_sql($text);
     1722    $text = wp_slash($text);
    17231723    return $text;
    17241724}
Note: See TracChangeset for help on using the changeset viewer.