Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/13/2012 06:36:38 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Improve logic in bp_is_group_forum().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template.php

    r6511 r6512  
    14101410
    14111411    // At a forum URL
    1412     if ( bp_is_single_item() && bp_is_groups_component() && bp_is_current_action( 'forum' ) )
     1412    if ( bp_is_single_item() && bp_is_groups_component() && bp_is_current_action( 'forum' ) ) {
    14131413        $retval = true;
    14141414
    1415     // If at a forum URL, set back to false if forums are inactive, or not
    1416     // installed correctly.
    1417     if ( true === $retval ) {
     1415        // If at a forum URL, set back to false if forums are inactive, or not
     1416        // installed correctly.
    14181417        if ( ! bp_is_active( 'forums' ) || ! bp_forums_is_installed_correctly() ) {
    14191418            $retval = false;
Note: See TracChangeset for help on using the changeset viewer.