Changeset 13445 for trunk/wp-admin/user-new.php
- Timestamp:
- 02/26/2010 09:13:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/user-new.php
r13423 r13445 84 84 } else { 85 85 $new_user_login = apply_filters('pre_user_login', sanitize_user(stripslashes($_REQUEST['user_login']), true)); 86 if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin( get_current_user_id()) ) {86 if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) { 87 87 add_filter( 'wpmu_signup_user_notification', create_function('', '{return false;}') ); // Disable confirmation email 88 88 } 89 89 wpmu_signup_user( $new_user_login, $_REQUEST[ 'email' ], array( 'add_to_blog' => $wpdb->blogid, 'new_role' => $_REQUEST[ 'role' ] ) ); 90 if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin( get_current_user_id()) ) {90 if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) { 91 91 $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' ] ) ); 92 92 wpmu_activate_signup( $key );
Note: See TracChangeset
for help on using the changeset viewer.