Changeset 47122 for trunk/src/wp-admin/user-new.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/user-new.php
r46594 r47122 59 59 } 60 60 61 // Adding an existing user to this blog 61 // Adding an existing user to this blog. 62 62 $new_user_email = $user_details->user_email; 63 63 $redirect = 'user-new.php'; … … 175 175 } 176 176 } else { 177 // Adding a new user to this site 177 // Adding a new user to this site. 178 178 $new_user_email = wp_unslash( $_REQUEST['email'] ); 179 179 $user_details = wpmu_validate_user_signup( $_REQUEST['user_login'], $new_user_email ); … … 184 184 $new_user_login = apply_filters( 'pre_user_login', sanitize_user( wp_unslash( $_REQUEST['user_login'] ), true ) ); 185 185 if ( isset( $_POST['noconfirmation'] ) && current_user_can( 'manage_network_users' ) ) { 186 add_filter( 'wpmu_signup_user_notification', '__return_false' ); // Disable confirmation email187 add_filter( 'wpmu_welcome_user_notification', '__return_false' ); // Disable welcome email 186 add_filter( 'wpmu_signup_user_notification', '__return_false' ); // Disable confirmation email. 187 add_filter( 'wpmu_welcome_user_notification', '__return_false' ); // Disable welcome email. 188 188 } 189 189 wpmu_signup_user( … … 447 447 </form> 448 448 <?php 449 } // is_multisite()449 } // End if is_multisite(). 450 450 451 451 if ( current_user_can( 'create_users' ) ) { … … 548 548 </td> 549 549 </tr> 550 <?php } // !is_multisite?>550 <?php } // End if ! is_multisite(). ?> 551 551 <tr class="form-field"> 552 552 <th scope="row"><label for="role"><?php _e( 'Role' ); ?></label></th> … … 580 580 581 581 </form> 582 <?php } // current_user_can('create_users')?>582 <?php } // End if current_user_can( 'create_users' ). ?> 583 583 </div> 584 584 <?php
Note: See TracChangeset
for help on using the changeset viewer.