From ce29e3847075b3ecbd8d81bd739fce3df03f92d0 Mon Sep 17 00:00:00 2001 From: Boone B Gorges Date: Wed, 18 Dec 2024 09:10:19 -0600 Subject: [PATCH] Ensure that blog_public=0 included in 'is_open' filter. See #3470. --- wp-content/themes/openlab/lib/group-funcs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/themes/openlab/lib/group-funcs.php b/wp-content/themes/openlab/lib/group-funcs.php index 3153286484..1e5cabe670 100644 --- a/wp-content/themes/openlab/lib/group-funcs.php +++ b/wp-content/themes/openlab/lib/group-funcs.php @@ -443,7 +443,7 @@ function( $clause ) { } ); - $where_clauses[] = "(g.status = 'public' OR gm_blog_public.meta_value = 1)"; + $where_clauses[] = "(g.status = 'public' OR gm_blog_public.meta_value IN (1,0))"; $groups_sql = str_replace( $original_where_clause,