Fix meta query for looking up existing domains

This commit is contained in:
Kelly Dwan 2019-10-08 13:35:23 -04:00
parent b032fa914d
commit cf310ce0bf
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -172,8 +172,10 @@ function has_existing_pledge( $domain, int $current_pledge_id = 0 ) {
'post_type' => Pledge\CPT_ID,
'post_status' => array( 'pending', 'publish' ),
'meta_query' => array(
'key' => PledgeMeta\META_PREFIX . 'org-domain',
'value' => $domain,
array(
'key' => PledgeMeta\META_PREFIX . 'org-domain',
'value' => $domain,
),
),
);