From b5a7ecca793178ddeb705f1ba8e1c1a49eb47438 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Mon, 28 Oct 2019 11:29:24 -0400 Subject: [PATCH] Un-hide pledges with no confirmed contributors --- plugins/wporg-5ftf/includes/pledge.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/wporg-5ftf/includes/pledge.php b/plugins/wporg-5ftf/includes/pledge.php index 88625dd..d30bc87 100755 --- a/plugins/wporg-5ftf/includes/pledge.php +++ b/plugins/wporg-5ftf/includes/pledge.php @@ -192,9 +192,10 @@ function filter_query( $query ) { 'type' => 'NUMERIC', ); - if ( CPT_ID === $query->get( 'post_type' ) ) { - $query->set( 'meta_query', $meta_queries ); - } + // @todo Re-enable this check once pledges are public. + // if ( CPT_ID === $query->get( 'post_type' ) ) { + // $query->set( 'meta_query', $meta_queries ); + // } // Searching is restricted to pledges only. if ( $query->is_search ) {