WordPress.org

Make WordPress Core

Ticket #33631: 33631.diff

File 33631.diff, 715 bytes (added by mackensen, 4 years ago)
  • wp-admin/network/site-new.php

     
    9090        $password = 'N/A';
    9191        $user_id = email_exists($email);
    9292        if ( !$user_id ) { // Create a new user with a random password
     93                /**
     94                 * Fires if a new user would be created via the network site-new.php page.
     95                 *
     96                 * @param int $email Email of the non-existent user.
     97                 */
     98                do_action( 'network_site_new_created_user_pending', $email);
     99
    93100                $user_id = username_exists( $domain );
    94101                if ( $user_id ) {
    95102                        wp_die( __( 'The domain or path entered conflicts with an existing username.' ) );