WordPress.org

Make WordPress Core

Changeset 16178


Ignore:
Timestamp:
11/04/10 09:06:45 (3 years ago)
Author:
westi
Message:

When adding a user to the blog pass in the current blog id. See #15316.

File:
1 edited

Legend:

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

    r16021 r16178  
    13941394 
    13951395function add_existing_user_to_blog( $details = false ) { 
     1396    global $blog_id; 
     1397     
    13961398    if ( is_array( $details ) ) { 
    1397         $result = add_user_to_blog( '', $details[ 'user_id' ], $details[ 'role' ] ); 
     1399        $result = add_user_to_blog( $blog_id, $details[ 'user_id' ], $details[ 'role' ] ); 
    13981400        do_action( 'added_existing_user', $details[ 'user_id' ], $result ); 
    13991401    } 
Note: See TracChangeset for help on using the changeset viewer.