Skip to:
Content

BuddyPress.org

Ticket #3135: bp-core-catchuri.php-wpmu.diff

File bp-core-catchuri.php-wpmu.diff, 898 bytes (added by Backie, 14 years ago)
  • bp-core/bp-core-catchuri.php

     
    2727 */
    2828function bp_core_set_uri_globals() {
    2929        global $bp, $bp_unfiltered_uri, $bp_unfiltered_uri_offset;
    30         global $current_blog, $wpdb;
     30        global $current_blog, $wpdb,$wpmu_version;
    3131
    3232        // Create global component, action, and item variables
    3333        $bp->current_component = $bp->current_action = $bp->current_item ='';
     
    3535
    3636        // Only catch URI's on the root blog if we are not running
    3737        // on multiple blogs
    38         if ( !defined( 'BP_ENABLE_MULTIBLOG' ) && is_multisite() ) {
     38        if ( !defined( 'BP_ENABLE_MULTIBLOG' ) &&
     39                        ((function_exists('is_multisite') && is_multisite()) || !empty($wpmu_version) )) {
    3940                if ( BP_ROOT_BLOG != (int) $wpdb->blogid )
    4041                        return false;
    4142        }