Changeset 5885 for trunk/bp-forums/bp-forums-functions.php
- Timestamp:
- 03/05/2012 06:17:43 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-forums/bp-forums-functions.php
r5871 r5885 1 1 <?php 2 2 3 // Exit if accessed directly 3 4 if ( !defined( 'ABSPATH' ) ) exit; 4 5 6 /** bbPress 2.x ***************************************************************/ 7 8 /** 9 * Used to see if bbPress 2.x is installed and active 10 * 11 * @since BuddyPress (1.6) 12 * @return boolean True if bbPress 2.x is active, false if not 13 */ 14 function bp_forums_is_bbpress_active() { 15 16 // Single site 17 if ( is_plugin_active( 'bbpress/bbpress.php' ) ) 18 return true; 19 20 // Network active 21 if ( is_plugin_active_for_network( 'bbpress/bbpress.php' ) ) 22 return true; 23 24 // Nope 25 return false; 26 } 27 28 /** bbPress 1.x ***************************************************************/ 29 30 /** 31 * If the bb-config-location option exists, bbPress 1.x was previously installed 32 * 33 * @since BuddyPress (1.2) 34 * @return boolean True if option exists, false if not 35 */ 5 36 function bp_forums_is_installed_correctly() { 6 global $bp; 7 8 if ( isset( $bp->forums->bbconfig ) && is_file( $bp->forums->bbconfig ) ) 37 if ( bp_get_option( 'bb-config-location' ) ) 9 38 return true; 10 39
Note: See TracChangeset
for help on using the changeset viewer.