Pass user_login and user_email to registration_errors. Props nacin. fixes #11237
git-svn-id: http://svn.automattic.com/wordpress/trunk@12266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a03752fdb4
commit
edd5d4d608
|
@ -258,7 +258,7 @@ function register_new_user($user_login, $user_email) {
|
||||||
|
|
||||||
do_action('register_post', $user_login, $user_email, $errors);
|
do_action('register_post', $user_login, $user_email, $errors);
|
||||||
|
|
||||||
$errors = apply_filters( 'registration_errors', $errors );
|
$errors = apply_filters( 'registration_errors', $errors, $user_login, $user_email );
|
||||||
|
|
||||||
if ( $errors->get_error_code() )
|
if ( $errors->get_error_code() )
|
||||||
return $errors;
|
return $errors;
|
||||||
|
|
Loading…
Reference in New Issue