Fix user creation from admin after changes for #10751. Fixes #10811 props alexkingorg.

git-svn-id: https://develop.svn.wordpress.org/trunk@11950 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-09-18 20:47:24 +00:00
parent f5e49c809b
commit 78efafba1d

View File

@ -66,7 +66,7 @@ function edit_user( $user_id = 0 ) {
}
if ( !$update && isset( $_POST['user_login'] ) )
$user->user_login = sanitize_user($userdata['user_login'], true);
$user->user_login = sanitize_user($_POST['user_login'], true);
$pass1 = $pass2 = '';
if ( isset( $_POST['pass1'] ))