From 8513d92a8b6b21f51e107bfa5c865167d90b2af0 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Fri, 26 Feb 2010 21:13:24 +0000 Subject: [PATCH] cleanup warnings - add site, See #12140 git-svn-id: https://develop.svn.wordpress.org/trunk@13445 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/user-new.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 83a88b0c26..e5f32e536c 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -83,11 +83,11 @@ if ( isset($_REQUEST['action']) && 'adduser' == $_REQUEST['action'] ) { $add_user_errors = $user_details[ 'errors' ]; } else { $new_user_login = apply_filters('pre_user_login', sanitize_user(stripslashes($_REQUEST['user_login']), true)); - if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin(get_current_user_id()) ) { + if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) { add_filter( 'wpmu_signup_user_notification', create_function('', '{return false;}') ); // Disable confirmation email } wpmu_signup_user( $new_user_login, $_REQUEST[ 'email' ], array( 'add_to_blog' => $wpdb->blogid, 'new_role' => $_REQUEST[ 'role' ] ) ); - if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin(get_current_user_id()) ) { + if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) { $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' ] ) ); wpmu_activate_signup( $key ); $redirect = add_query_arg( array('update' => 'addnoconfirmation'), 'user-new.php' );