WordPress.org

Make WordPress Core

Changeset 17794


Ignore:
Timestamp:
05/04/2011 06:38:17 PM (7 years ago)
Author:
ryan
Message:

Check if empty to avoid noticed when signing up for username in multisite. Props jfarthing84, kawauso. fixes #16680

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r17379 r17794  
    18611861function add_new_user_to_blog( $user_id, $email, $meta ) {
    18621862    global $current_site;
    1863     if ( $meta[ 'add_to_blog' ] ) {
     1863    if ( !empty( $meta[ 'add_to_blog' ] ) ) {
    18641864        $blog_id = $meta[ 'add_to_blog' ];
    18651865        $role = $meta[ 'new_role' ];
Note: See TracChangeset for help on using the changeset viewer.