Un-hide pledges with no confirmed contributors

This commit is contained in:
Kelly Dwan 2019-10-28 11:29:24 -04:00
parent bf7fdf7927
commit b5a7ecca79
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -192,9 +192,10 @@ function filter_query( $query ) {
'type' => 'NUMERIC', 'type' => 'NUMERIC',
); );
if ( CPT_ID === $query->get( 'post_type' ) ) { // @todo Re-enable this check once pledges are public.
$query->set( 'meta_query', $meta_queries ); // if ( CPT_ID === $query->get( 'post_type' ) ) {
} // $query->set( 'meta_query', $meta_queries );
// }
// Searching is restricted to pledges only. // Searching is restricted to pledges only.
if ( $query->is_search ) { if ( $query->is_search ) {