mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-02 09:11:17 +03:00
Un-hide pledges with no confirmed contributors
This commit is contained in:
parent
bf7fdf7927
commit
b5a7ecca79
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue