Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/09/2011 07:14:50 PM (14 years ago)
Author:
boonebgorges
Message:

Introduces bp_is_multiblog_mode() to reduce BP_ENABLE_MULTIBLOG checks throughout. See #3314

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-catchuri.php

    r4628 r4630  
    3434    $bp->action_variables = $bp->displayed_user->id = '';
    3535
    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;
    4139    }
    4240
     
    6765
    6866    // 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() ) ) {
    7068
    7169        // Any subdirectory names must be removed from $bp_uri.
Note: See TracChangeset for help on using the changeset viewer.