Skip to:
Content

BuddyPress.org

Changeset 869


Ignore:
Timestamp:
01/19/2009 04:56:14 AM (16 years ago)
Author:
apeatling
Message:

Removed dependency on the groups component

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums.php

    r754 r869  
    2121    if ( get_usermeta( $bp['loggedin_userid'], 'bb_capabilities' ) == '' )
    2222        bp_forums_make_user_active_member( $bp['loggedin_userid'] );
    23    
    24     if ( $bp['current_component'] == $bp['groups']['slug'] || $_GET['page'] == 'bp_forums_settings' ) {
    25         if ( defined('XMLRPC_REQUEST') && XMLRPC_REQUEST ) return;
    26         if ( defined('DOING_AJAX') && DOING_AJAX ) return;
    27        
    28         include_once( ABSPATH . WPINC . '/class-IXR.php' );
    29    
    30         $bbpress_live = new bbPress_Live();
    31     }
    3223}
    3324add_action( 'wp', 'bp_forums_setup', 3 );
  • trunk/bp-forums/bp-forums-admin.php

    r827 r869  
    55    if ( is_site_admin() ) {
    66        /* Add the administration tab under the "Site Admin" tab for site administrators */
    7         add_submenu_page( 'wpmu-admin.php', __( 'Group Forums', 'buddypress' ), __( 'Group Forums', 'buddypress' ), 1, "bp_forums_settings", "bp_forums_bbpress_admin" );
     7        add_submenu_page( 'wpmu-admin.php', __( 'bbPress Forums', 'buddypress' ), __( 'bbPress Forums', 'buddypress' ), 1, "bp_forums_settings", "bp_forums_bbpress_admin" );
    88    }
    99}
     
    1212function bp_forums_bbpress_admin() {
    1313    global $bp, $bbpress_live;
     14   
     15    if ( !is_object( $bbpress_live ) ) {
     16        include_once( ABSPATH . WPINC . '/class-IXR.php' );
     17        $bbpress_live = new bbPress_Live();
     18    }
    1419   
    1520    if ( isset( $_POST['submit'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.