WordPress.org

Make WordPress Core

Changeset 13445


Ignore:
Timestamp:
02/26/10 21:13:24 (4 years ago)
Author:
wpmuguru
Message:

cleanup warnings - add site, See #12140

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-new.php

    r13423 r13445  
    8484            } else { 
    8585                $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() ) { 
    8787                    add_filter( 'wpmu_signup_user_notification', create_function('', '{return false;}') ); // Disable confirmation email 
    8888                } 
    8989                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() ) { 
    9191                    $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' ] ) ); 
    9292                    wpmu_activate_signup( $key ); 
Note: See TracChangeset for help on using the changeset viewer.