WordPress.org

Make WordPress Core

Ticket #10811: patch.diff

File patch.diff, 411 bytes (added by alexkingorg, 5 years ago)

Simple patch, pointint to correct data array to get username

  • user.php

     
    6666        } 
    6767 
    6868        if ( !$update && isset( $_POST['user_login'] ) ) 
    69                 $user->user_login = sanitize_user($userdata['user_login'], true); 
     69                $user->user_login = sanitize_user($_POST['user_login'], true); 
    7070 
    7171        $pass1 = $pass2 = ''; 
    7272        if ( isset( $_POST['pass1'] ))