Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/26/2017 07:25:15 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Engagements: Allow engagements to be toggled on/off, for forums that have not run the upgrade routine yet.

Also missed a spot in the BuddyPress integration.

See #3068.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/loader.php

    r6320 r6321  
    220220
    221221        // Engagements
    222         $sub_nav[] = array(
    223             'name'            => __( 'Engagements', 'bbpress' ),
    224             'slug'            => bbp_get_user_engagements_slug(),
    225             'parent_url'      => $forums_link,
    226             'parent_slug'     => $this->slug,
    227             'screen_function' => 'bbp_member_forums_screen_engagements',
    228             'position'        => 60,
    229             'item_css_id'     => 'engagements'
    230         );
     222        if ( bbp_is_engagements_active() ) {
     223            $sub_nav[] = array(
     224                'name'            => __( 'Engagements', 'bbpress' ),
     225                'slug'            => bbp_get_user_engagements_slug(),
     226                'parent_url'      => $forums_link,
     227                'parent_slug'     => $this->slug,
     228                'screen_function' => 'bbp_member_forums_screen_engagements',
     229                'position'        => 60,
     230                'item_css_id'     => 'engagements'
     231            );
     232        }
    231233
    232234        // Favorite topics
Note: See TracChangeset for help on using the changeset viewer.