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:
parent
ac93f6742e
commit
bb810c5352
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue