Ticket #16235: 16235.diff
File 16235.diff, 795 bytes (added by , 12 years ago) |
---|
-
wp-admin/user-new.php
110 110 $new_user_login = apply_filters('pre_user_login', sanitize_user(stripslashes($_REQUEST['user_login']), true)); 111 111 if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) { 112 112 add_filter( 'wpmu_signup_user_notification', '__return_false' ); // Disable confirmation email 113 add_filter( 'wpmu_welcome_user_notification', '__return_false' ); // Disable welcome email 113 114 } 114 115 wpmu_signup_user( $new_user_login, $_REQUEST[ 'email' ], array( 'add_to_blog' => $wpdb->blogid, 'new_role' => $_REQUEST[ 'role' ] ) ); 115 116 if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) {