Skip to:
Content

bbPress.org

Ticket #3165: 3165.01.diff

File 3165.01.diff, 625 bytes (added by thebrandonallen, 3 years ago)
  • src/includes/extend/buddypress/groups.php

    diff --git src/includes/extend/buddypress/groups.php src/includes/extend/buddypress/groups.php
    index f94ea4c3..831ae34b 100644
    class BBP_Forums_Group_Extension extends BP_Group_Extension { 
    166166
    167167                // Additional BuddyPress specific single-forum conditionals
    168168                if ( false === $retval ) {
    169                         if ( bp_is_group() && bp_is_action_variable( $this->forum_slug, 0 ) ) {
     169                        if ( bp_is_group() && ( bp_is_current_action( $this->slug ) && ! bp_is_action_variable( $this->topic_slug, 0 ) ) ) {
    170170                                $retval = true;
    171171                        }
    172172                }