WordPress.org

Make WordPress Core

Changeset 23593


Ignore:
Timestamp:
03/03/2013 08:55:30 PM (6 years ago)
Author:
ryan
Message:

Remove unnecessary stripslashes().

see #21767

File:
1 edited

Legend:

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

    r23554 r23593  
    11981198    $user = get_userdata( $user_id );
    11991199
    1200     $user_login = stripslashes($user->user_login);
    1201     $user_email = stripslashes($user->user_email);
    1202 
    12031200    // The blogname option is escaped with esc_html on the way into the database in sanitize_option
    12041201    // we want to reverse this for the plain text arena of emails.
     
    12061203
    12071204    $message  = sprintf(__('New user registration on your site %s:'), $blogname) . "\r\n\r\n";
    1208     $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
    1209     $message .= sprintf(__('E-mail: %s'), $user_email) . "\r\n";
     1205    $message .= sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n";
     1206    $message .= sprintf(__('E-mail: %s'), $user->user_email) . "\r\n";
    12101207
    12111208    @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), $blogname), $message);
     
    12141211        return;
    12151212
    1216     $message  = sprintf(__('Username: %s'), $user_login) . "\r\n";
     1213    $message  = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
    12171214    $message .= sprintf(__('Password: %s'), $plaintext_pass) . "\r\n";
    12181215    $message .= wp_login_url() . "\r\n";
    12191216
    1220     wp_mail($user_email, sprintf(__('[%s] Your username and password'), $blogname), $message);
     1217    wp_mail($user->user_email, sprintf(__('[%s] Your username and password'), $blogname), $message);
    12211218
    12221219}
Note: See TracChangeset for help on using the changeset viewer.