Skip to:
Content

BuddyPress.org

Ticket #7291: 7291.02.patch

File 7291.02.patch, 733 bytes (added by r-a-y, 5 years ago)
  • src/bp-groups/classes/class-bp-groups-component.php

     
    296296                ) );
    297297
    298298                // If the user was attempting to access a group, but no group by that name was found, 404.
    299                 if ( bp_is_groups_component() && empty( $this->current_group ) && bp_current_action() && !in_array( bp_current_action(), $this->forbidden_names ) ) {
     299                if ( ! bp_is_groups_directory() && bp_is_groups_component() && empty( $this->current_group ) && bp_current_action() && !in_array( bp_current_action(), $this->forbidden_names ) ) {
    300300                        bp_do_404();
    301301                        return;
    302302                }