Eliminate use of `extract()` in `validate_user_signup()`.

`$orig_username` does not need to be pulled from `validate_user_form()` as it is not used in this function.

See #22400.

Built from https://develop.svn.wordpress.org/trunk@28446


git-svn-id: http://core.svn.wordpress.org/trunk@28273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-05-16 14:47:14 +00:00
parent ac93f6742e
commit bb810c5352
1 changed files with 3 additions and 1 deletions

View File

@ -474,7 +474,9 @@ function signup_user( $user_name = '', $user_email = '', $errors = '' ) {
*/ */
function validate_user_signup() { function validate_user_signup() {
$result = validate_user_form(); $result = validate_user_form();
extract($result); $user_name = $result['user_name'];
$user_email = $result['user_email'];
$errors = $result['errors'];
if ( $errors->get_error_code() ) { if ( $errors->get_error_code() ) {
signup_user($user_name, $user_email, $errors); signup_user($user_name, $user_email, $errors);