Skip to content

Commit

Permalink
Exclude non-visible posts when querying for Recent Comments on group …
Browse files Browse the repository at this point in the history
…home.

See #3281.
  • Loading branch information
boonebgorges committed Jan 3, 2024
1 parent 27ce6a7 commit 57c559c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wp-content/themes/openlab/lib/group-funcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -1501,6 +1501,7 @@ function openlab_show_site_posts_and_comments() {
'status' => 'approve',
'number' => 3,
'author__not_in' => $group_private_members,
'post__not_in' => $post__not_in,
'meta_query' => [
'relation' => 'AND',
[
Expand Down

0 comments on commit 57c559c

Please sign in to comment.