Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/07/2023 07:47:34 AM (3 years ago)
Author:
imath
Message:

Do 404 when trying to reach a page about an unregistered group type

Improves the way we handle this case making sure we really end up to a
404 if the corresponding group type is not registered or do not support
directory filtering. Update corresponding PHP unit tests to really test
this case instead of a case about a member type.

Closes https://github.com/buddypress/buddypress/pull/82
Fixes #8866

File:
1 edited

Legend:

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

    r12647 r13448  
    3737
    3838                // Bail if not looking at a group.
    39                 if ( ! bp_is_groups_component() )
     39                if ( ! bp_is_groups_component() ) {
    4040                        return;
     41                }
    4142
    4243                // Group Directory.
Note: See TracChangeset for help on using the changeset viewer.