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-template.php

    r4554 r4559  
    442442}
    443443
    444 function bp_get_option( $option_name ) {
    445     global $bp;
    446 
    447     if ( !empty( $bp->site_options[$option_name] ) )
    448         $retval = $bp->site_options[$option_name];
    449     else
    450         $retval = false;
    451 
    452     return apply_filters( 'bp_get_option', $retval );
    453 }
    454 
    455444/**
    456445 * Allow templates to pass parameters directly into the template loops via AJAX
Note: See TracChangeset for help on using the changeset viewer.