Multisite: Clarify purpose of hook from [35786] and match our naming convention.

`network_site_new_created_user_pending` -> `pre_network_site_new_created_user` 

See #33631


git-svn-id: https://develop.svn.wordpress.org/trunk@35789 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Rachel Baker 2015-12-06 20:31:04 +00:00
parent 1aa7dda524
commit c3b6753782

View File

@ -91,13 +91,13 @@ if ( isset($_REQUEST['action']) && 'add-site' == $_REQUEST['action'] ) {
$user_id = email_exists($email); $user_id = email_exists($email);
if ( !$user_id ) { // Create a new user with a random password if ( !$user_id ) { // Create a new user with a random password
/** /**
* Fires when a new user will be created via the network site-new.php page. * Fires before a new user is created via the network site-new.php page.
* *
* @since 4.5.0 * @since 4.5.0
* *
* @param string $email Email of the non-existent user. * @param string $email Email of the non-existent user.
*/ */
do_action( 'network_site_new_created_user_pending', $email ); do_action( 'pre_network_site_new_created_user', $email );
$user_id = username_exists( $domain ); $user_id = username_exists( $domain );
if ( $user_id ) { if ( $user_id ) {