Skip to content

Commit

Permalink
Don't allow URL searches to match the current group.
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Aug 11, 2023
1 parent 8e332b2 commit c71b2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ public function process_group_search_ajax() {
}
}

if ( $group_id ) {
if ( $group_id && bp_get_current_group_id() !== $group_id ) {
$group = groups_get_group( $group_id );
$retval[] = $group_format_callback( $group );
}
Expand Down

0 comments on commit c71b2af

Please sign in to comment.