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:
parent
81654225ea
commit
8e397f162e
|
@ -210,7 +210,7 @@ case 'register' :
|
||||||
require_once( ABSPATH . WPINC . '/registration.php');
|
require_once( ABSPATH . WPINC . '/registration.php');
|
||||||
|
|
||||||
$user_login = sanitize_user( $_POST['user_login'] );
|
$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
|
// Check the username
|
||||||
if ( $user_login == '' )
|
if ( $user_login == '' )
|
||||||
|
@ -232,6 +232,8 @@ case 'register' :
|
||||||
|
|
||||||
do_action('register_post');
|
do_action('register_post');
|
||||||
|
|
||||||
|
$errors = apply_filters( 'registration_errors', $errors );
|
||||||
|
|
||||||
if ( empty( $errors ) ) {
|
if ( empty( $errors ) ) {
|
||||||
$user_pass = substr( md5( uniqid( microtime() ) ), 0, 7);
|
$user_pass = substr( md5( uniqid( microtime() ) ), 0, 7);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue