Skip to:
Content

BuddyPress.org

Changeset 970 for trunk/bp-forums.php


Ignore:
Timestamp:
01/29/2009 09:20:30 PM (17 years ago)
Author:
apeatling
Message:

adding missing bp-forums function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums.php

    r938 r970  
    2626add_action( 'wp', 'bp_forums_setup', 3 );
    2727add_action( 'admin_head', 'bp_forums_setup', 3 );
     28
     29function bp_forums_is_installed_correctly() {
     30    global $bbpress_live;
     31   
     32    if ( !is_object( $bbpress_live ) ) {
     33        include_once( ABSPATH . WPINC . '/class-IXR.php' );
     34        $bbpress_live = new bbPress_Live();
     35    }
     36   
     37    if ( !$bbpress_live->fetch->endpoint )
     38        return false;
     39   
     40    return true;
     41}
    2842
    2943function bp_forums_get_forum( $parent = 0, $depth = 0 ) {
Note: See TracChangeset for help on using the changeset viewer.