From 4a7c411976f83c7eb73cd096dfd12af2700ec705 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sun, 3 Dec 2006 21:16:19 +0000 Subject: [PATCH] Some new hooks on registration, fixes #2541 git-svn-id: https://develop.svn.wordpress.org/trunk@4589 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-login.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-login.php b/wp-login.php index c1029028e8..71ba4dfe0f 100644 --- a/wp-login.php +++ b/wp-login.php @@ -210,7 +210,7 @@ case 'register' : require_once( ABSPATH . WPINC . '/registration.php'); $user_login = sanitize_user( $_POST['user_login'] ); - $user_email = $_POST['user_email']; + $user_email = apply_filters( 'user_registration_email', $_POST['user_email'] ); // Check the username if ( $user_login == '' ) @@ -232,6 +232,8 @@ case 'register' : do_action('register_post'); + $errors = apply_filters( 'registration_errors', $errors ); + if ( empty( $errors ) ) { $user_pass = substr( md5( uniqid( microtime() ) ), 0, 7);