Pass user_login and user_email to registration_errors. Props nacin. fixes #11237
git-svn-id: https://develop.svn.wordpress.org/trunk@12266 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ef3f414213
commit
3e94024432
@ -258,7 +258,7 @@ function register_new_user($user_login, $user_email) {
|
||||
|
||||
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() )
|
||||
return $errors;
|
||||
|
Loading…
Reference in New Issue
Block a user