Some new hooks on registration, fixes #2541

git-svn-id: https://develop.svn.wordpress.org/trunk@4589 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2006-12-03 21:16:19 +00:00
parent 3aa3af79c7
commit 4a7c411976
1 changed files with 3 additions and 1 deletions

View File

@ -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);