mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 19:13:44 +03:00
Pledge List: Re-enable condition to only show staffed pledges.
Closes #43
This commit is contained in:
parent
189c61bfe8
commit
6209060eb2
|
@ -193,10 +193,9 @@ function filter_query( $query ) {
|
|||
'type' => 'NUMERIC',
|
||||
);
|
||||
|
||||
// @todo Re-enable this check once pledges are public.
|
||||
// if ( CPT_ID === $query->get( 'post_type' ) ) {
|
||||
// $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.
|
||||
if ( $query->is_search ) {
|
||||
|
|
Loading…
Reference in a new issue