Changeset 4630 for trunk/bp-core/bp-core-catchuri.php
- Timestamp:
- 07/09/2011 07:14:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-catchuri.php
r4628 r4630 34 34 $bp->action_variables = $bp->displayed_user->id = ''; 35 35 36 // Only catch URI's on the root blog if we are not running 37 // on multiple blogs 38 if ( !defined( 'BP_ENABLE_MULTIBLOG' ) && is_multisite() ) { 39 if ( bp_get_root_blog_id() != (int) $wpdb->blogid ) 40 return false; 36 // Don't catch URIs on non-root blogs unless multiblog mode is on 37 if ( !bp_is_root_blog() && !bp_is_multiblog_mode() ) { 38 return false; 41 39 } 42 40 … … 67 65 68 66 // Running off blog other than root 69 if ( is_multisite() && !is_subdomain_install() && ( defined( 'BP_ENABLE_MULTIBLOG') || 1 != bp_get_root_blog_id() ) ) {67 if ( is_multisite() && !is_subdomain_install() && ( bp_is_multiblog_mode() || 1 != bp_get_root_blog_id() ) ) { 70 68 71 69 // Any subdirectory names must be removed from $bp_uri.
Note: See TracChangeset
for help on using the changeset viewer.