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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-09-18 20:47:24 +00:00
parent ad83f73957
commit be1ff7ace1

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'] ))