Ticket #3135: bp-core-catchuri.php-wpmu.diff
File bp-core-catchuri.php-wpmu.diff, 898 bytes (added by , 14 years ago) |
---|
-
bp-core/bp-core-catchuri.php
27 27 */ 28 28 function bp_core_set_uri_globals() { 29 29 global $bp, $bp_unfiltered_uri, $bp_unfiltered_uri_offset; 30 global $current_blog, $wpdb ;30 global $current_blog, $wpdb,$wpmu_version; 31 31 32 32 // Create global component, action, and item variables 33 33 $bp->current_component = $bp->current_action = $bp->current_item =''; … … 35 35 36 36 // Only catch URI's on the root blog if we are not running 37 37 // 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) )) { 39 40 if ( BP_ROOT_BLOG != (int) $wpdb->blogid ) 40 41 return false; 41 42 }