diff --git a/wp-admin/network/site-new.php b/wp-admin/network/site-new.php index dac11614a4..83254da848 100644 --- a/wp-admin/network/site-new.php +++ b/wp-admin/network/site-new.php @@ -90,6 +90,15 @@ if ( isset($_REQUEST['action']) && 'add-site' == $_REQUEST['action'] ) { $password = 'N/A'; $user_id = email_exists($email); 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. + * + * @since 4.5.0 + * + * @param string $email Email of the non-existent user. + */ + do_action( 'network_site_new_created_user_pending', $email ); + $user_id = username_exists( $domain ); if ( $user_id ) { wp_die( __( 'The domain or path entered conflicts with an existing username.' ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 05e8d16a3e..8880881fb1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-35785'; +$wp_version = '4.5-alpha-35786'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.