mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 18:05:45 +03:00
Un-hide pledges with no confirmed contributors
This commit is contained in:
parent
bf7fdf7927
commit
b5a7ecca79
1 changed files with 4 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue