Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/02/2018 03:12:48 PM (7 years ago)
Author:
djpaul
Message:

Remove uses of bp_is_active( 'forums' ).

These checks only works with the Legacy forums, not bbPress.
All template and navigation functionality affected by this changeset have replacements directly provided by bbPress.

See #5351

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-groups-component.php

    r11776 r11783  
    556556            }
    557557
    558             // Forums are enabled and turned on.
    559             if ( $this->current_group->enable_forum && bp_is_active( 'forums' ) ) {
    560                 $sub_nav[] = array(
    561                     'name'            => _x( 'Forum', 'My Group screen nav', 'buddypress' ),
    562                     'slug'            => 'forum',
    563                     'parent_url'      => $group_link,
    564                     'parent_slug'     => $this->current_group->slug,
    565                     'screen_function' => 'groups_screen_group_forum',
    566                     'position'        => 40,
    567                     'user_has_access' => $this->current_group->user_has_access,
    568                     'item_css_id'     => 'forums'
    569                 );
    570             }
    571 
    572558            if ( $this->current_group->front_template || bp_is_active( 'activity' ) ) {
    573559                /**
Note: See TracChangeset for help on using the changeset viewer.