From be1ff7ace17b4ae23c6bd0d267bb78eca215f93d Mon Sep 17 00:00:00 2001 From: westi Date: Fri, 18 Sep 2009 20:47:24 +0000 Subject: [PATCH] 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 --- wp-admin/includes/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php index 5883703235..2e59b552ca 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -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'] ))