Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/21/2016 10:53:11 PM (4 years ago)
Author:
r-a-y
Message:

Groups: Introduce group type functionality on the Groups Directory page.

If a group type of foo is registered with the has_directory parameter,
you can view a group directory for foo at:
example.com/groups/type/foo/

See #7210.

File:
1 edited

Legend:

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

    r11048 r11145  
    26872687 */
    26882688function bp_is_groups_directory() {
    2689     if ( bp_is_groups_component() && ! bp_current_action() && ! bp_current_item() ) {
     2689    if ( bp_is_groups_component() && ! bp_is_group() && ( ! bp_current_action() || ( bp_action_variable() && bp_is_current_action( bp_get_groups_group_type_base() ) ) ) ) {
    26902690        return true;
    26912691    }
Note: See TracChangeset for help on using the changeset viewer.