WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/26/2010 12:41:23 AM (12 years ago)
Author:
nacin
Message:

Don't use deprecated functions. Fixes #12377 props filosofo.

File:
1 edited

Legend:

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

    r13106 r13423  
    8484            } else {
    8585                $new_user_login = apply_filters('pre_user_login', sanitize_user(stripslashes($_REQUEST['user_login']), true));
    86                 if ( isset( $_POST[ 'noconfirmation' ] ) && is_site_admin() ) {
     86                if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin(get_current_user_id()) ) {
    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_site_admin() ) {
     90                if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin(get_current_user_id()) ) {
    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.