mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 18:05:45 +03:00
Fix meta query for looking up existing domains
This commit is contained in:
parent
b032fa914d
commit
cf310ce0bf
1 changed files with 4 additions and 2 deletions
|
@ -172,8 +172,10 @@ function has_existing_pledge( $domain, int $current_pledge_id = 0 ) {
|
||||||
'post_type' => Pledge\CPT_ID,
|
'post_type' => Pledge\CPT_ID,
|
||||||
'post_status' => array( 'pending', 'publish' ),
|
'post_status' => array( 'pending', 'publish' ),
|
||||||
'meta_query' => array(
|
'meta_query' => array(
|
||||||
'key' => PledgeMeta\META_PREFIX . 'org-domain',
|
array(
|
||||||
'value' => $domain,
|
'key' => PledgeMeta\META_PREFIX . 'org-domain',
|
||||||
|
'value' => $domain,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue