Pledge List: Re-enable condition to only show staffed pledges.

Closes #43
This commit is contained in:
Ian Dunn 2019-10-29 11:20:08 -07:00
parent 189c61bfe8
commit 6209060eb2
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB

View file

@ -193,10 +193,9 @@ function filter_query( $query ) {
'type' => 'NUMERIC', 'type' => 'NUMERIC',
); );
// @todo Re-enable this check once pledges are public. if ( CPT_ID === $query->get( 'post_type' ) ) {
// if ( CPT_ID === $query->get( 'post_type' ) ) { $query->set( 'meta_query', $meta_queries );
// $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 ) {