Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/04/2011 04:59:01 PM (13 years ago)
Author:
johnjamesjacoby
Message:
  • Swap BP_ROOT_BLOG const usage for new bp_get_root_blog_id() function
  • Use bp_get_root_blog_id() place of bp_get_option_blog_id()
  • Check for BP_ENABLE_MULTIBLOG when assigning root blog ID

See #3313, #3314.

File:
1 edited

Legend:

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

    r4559 r4602  
    3333    if ( !function_exists( 'switch_to_blog' ) ) {
    3434        function switch_to_blog() {
    35             return 1;
     35            return bp_get_root_blog_id();
    3636        }
    3737    }
     
    3939    if ( !function_exists( 'restore_current_blog' ) ) {
    4040        function restore_current_blog() {
    41             return 1;
     41            return bp_get_root_blog_id();
    4242        }
    4343    }
Note: See TracChangeset for help on using the changeset viewer.