Ticket #15725: 15725.patch
| File 15725.patch, 1.5 KB (added by , 15 years ago) |
|---|
-
wp-includes/ms-functions.php
1387 1387 if ( $meta[ 'add_to_blog' ] ) { 1388 1388 $blog_id = $meta[ 'add_to_blog' ]; 1389 1389 $role = $meta[ 'new_role' ]; 1390 remove_user_from_blog($user_id, $current_site->blog id); // remove user from main blog.1390 remove_user_from_blog($user_id, $current_site->blog_id); // remove user from main blog. 1391 1391 add_user_to_blog( $blog_id, $user_id, $role ); 1392 1392 update_user_meta( $user_id, 'primary_blog', $blog_id ); 1393 1393 } -
wp-admin/user-new.php
108 108 add_filter( 'wpmu_signup_user_notification', '__return_false' ); // Disable confirmation email 109 109 } 110 110 wpmu_signup_user( $new_user_login, $_REQUEST[ 'email' ], array( 'add_to_blog' => $wpdb->blogid, 'new_role' => $_REQUEST[ 'role' ] ) ); 111 if ( isset( $_POST[ ' adduser' ] ) && isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) {111 if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) { 112 112 $key = $wpdb->get_var( $wpdb->prepare( "SELECT activation_key FROM {$wpdb->signups} WHERE user_login = %s AND user_email = %s", $new_user_login, $_REQUEST[ 'email' ] ) ); 113 113 wpmu_activate_signup( $key ); 114 114 $redirect = add_query_arg( array('update' => 'addnoconfirmation'), 'user-new.php' );