WordPress.org

Make WordPress Core

Ticket #16235: 16235.diff

File 16235.diff, 795 bytes (added by tmoorewp, 9 years ago)
  • wp-admin/user-new.php

     
    110110                        $new_user_login = apply_filters('pre_user_login', sanitize_user(stripslashes($_REQUEST['user_login']), true));
    111111                        if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) {
    112112                                add_filter( 'wpmu_signup_user_notification', '__return_false' ); // Disable confirmation email
     113                                add_filter( 'wpmu_welcome_user_notification', '__return_false' ); // Disable welcome email
    113114                        }
    114115                        wpmu_signup_user( $new_user_login, $_REQUEST[ 'email' ], array( 'add_to_blog' => $wpdb->blogid, 'new_role' => $_REQUEST[ 'role' ] ) );
    115116                        if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) {