Skip to:
Content

BuddyPress.org

Changeset 5777


Ignore:
Timestamp:
02/13/2012 07:42:04 PM (13 years ago)
Author:
djpaul
Message:

Add multisite check to avoid php warning. See #3916.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-functions.php

    r5775 r5777  
    352352 */
    353353function bp_blogs_maybe_add_user_to_blog() {
     354    if ( ! is_multisite() )
     355        return;
     356
    354357    remove_action( 'init', 'maybe_add_existing_user_to_blog' );
    355358    add_action( 'init', 'maybe_add_existing_user_to_blog', 20 );
Note: See TracChangeset for help on using the changeset viewer.