Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/24/2011 06:57:51 PM (13 years ago)
Author:
boonebgorges
Message:

Introduces bp_x_option() wrapper functions, along with bp_get_option_blog_id() to allow for fully filterable option storage. Refactors internal option storage to use new API functions. Fixes bp-pages for BP_ENABLE_MULTIBLOG. Fixes #3261

File:
1 edited

Legend:

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

    r4456 r4559  
    1717
    1818    $wpdb->base_prefix = $wpdb->prefix;
    19     $wpdb->blogid      = 1;
     19    $wpdb->blogid      = BP_ROOT_BLOG;
    2020
    2121    if ( !function_exists( 'get_blog_option' ) ) {
    2222        function get_blog_option( $blog_id, $option_name, $default = false ) {
    2323            return get_option( $option_name, $default );
     24        }
     25    }
     26   
     27    if ( !function_exists( 'update_blog_option' ) ) {
     28        function update_blog_option( $blog_id, $option_name, $value ) {
     29            return update_option( $option_name, $value );
    2430        }
    2531    }
Note: See TracChangeset for help on using the changeset viewer.