WordPress.org

Make WordPress Core

Ticket #17018: 17018.patch

File 17018.patch, 564 bytes (added by hakre, 4 years ago)

Fix

  • wp-admin/includes/user.php

     
    185185                $user_id = wp_update_user( get_object_vars( $user ) ); 
    186186        } else { 
    187187                $user_id = wp_insert_user( get_object_vars( $user ) ); 
    188                 wp_new_user_notification( $user_id, isset($_POST['send_password']) ? $pass1 : '' ); 
     188                wp_new_user_notification( $user_id, isset($_POST['send_password']) ? stripslashes( $pass1 ) : '' ); 
    189189        } 
    190190        return $user_id; 
    191191}