WordPress.org

Make WordPress Core

Ticket #15173: 15173.2.diff

File 15173.2.diff, 971 bytes (added by wonderboymusic, 7 years ago)
  • wp-includes/ms-functions.php

     
    866866                if ( isset( $user_already_exists ) )
    867867                        return new WP_Error( 'user_already_exists', __( 'That username is already activated.' ), $signup);
    868868
    869                 wpmu_welcome_user_notification($user_id, $password, $meta);
     869                wpmu_welcome_user_notification( $user_id, $password, $meta );
    870870
    871                 add_new_user_to_blog( $user_id, $user_email, $meta );
    872                 do_action('wpmu_activate_user', $user_id, $password, $meta);
    873                 return array('user_id' => $user_id, 'password' => $password, 'meta' => $meta);
     871                do_action( 'wpmu_activate_user', $user_id, $password, $meta );
     872                return array( 'user_id' => $user_id, 'password' => $password, 'meta' => $meta );
    874873        }
    875874
    876875        $blog_id = wpmu_create_blog( $signup->domain, $signup->path, $signup->title, $user_id, $meta, $wpdb->siteid );