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/includes/user.php

    r23554 r23567  
    3535        $user->ID = (int) $user_id;
    3636        $userdata = get_userdata( $user_id );
    37         $user->user_login = $wpdb->escape( $userdata->user_login );
     37        $user->user_login = wp_slash( $userdata->user_login );
    3838    } else {
    3939        $update = false;
Note: See TracChangeset for help on using the changeset viewer.