Some new hooks on registration, fixes #2541

git-svn-id: http://svn.automattic.com/wordpress/trunk@4589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2006-12-03 21:16:19 +00:00
parent 81654225ea
commit 8e397f162e
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);