Changeset 5192 for trunk/bp-groups/bp-groups-forums.php
- Timestamp:
- 09/30/2011 01:52:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-forums.php
r4961 r5192 24 24 } 25 25 26 /** 27 * Updates group forum metadata (title, description, slug) when the group's details are edited 28 * 29 * @package BuddyPress 30 * @subpackage Groups 31 * 32 * @param int $group_id Group id, passed from groups_details_updated 33 */ 26 34 function groups_update_group_forum( $group_id ) { 27 35 28 36 $group = new BP_Groups_Group( $group_id ); 29 37 30 if ( empty( $group->enable_forum ) || !bp_is_active( 'forums' ) ) 38 /** 39 * Bail in the following three situations: 40 * 1. Forums are not enabled for this group 41 * 2. The BP Forum component is not enabled 42 * 3. The built-in bbPress forums are not correctly installed (usually means they've been 43 * uninstalled) 44 */ 45 if ( empty( $group->enable_forum ) || !bp_is_active( 'forums' ) || ( function_exists( 'bp_forums_is_installed_correctly' ) && !bp_forums_is_installed_correctly() ) ) 31 46 return false; 32 47
Note: See TracChangeset
for help on using the changeset viewer.