WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/03/2013 09:11:40 PM (8 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-includes/user.php

    r23588 r23594  
    13911391
    13921392    $data = compact( 'user_pass', 'user_email', 'user_url', 'user_nicename', 'display_name', 'user_registered' );
    1393     $data = stripslashes_deep( $data );
     1393    $data = wp_unslash( $data );
    13941394
    13951395    if ( $update ) {
     
    15051505 */
    15061506function wp_create_user($username, $password, $email = '') {
    1507     $user_login = esc_sql( $username );
    1508     $user_email = esc_sql( $email    );
     1507    $user_login = wp_slash( $username );
     1508    $user_email = wp_slash( $email    );
    15091509    $user_pass = $password;
    15101510
Note: See TracChangeset for help on using the changeset viewer.