Skip to content

Commit

Permalink
Fixed incorrect meta query value. Related awesomemotive#329
Browse files Browse the repository at this point in the history
  • Loading branch information
pippinsplugins committed Sep 12, 2012
1 parent c453450 commit ee6d93c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions includes/payment-functions.php
Expand Up @@ -71,7 +71,7 @@ function edd_get_payments( $args = array() ) {
// append to the user meta query
$payment_args['meta_query'][1] = array(
'key' => '_edd_payment_mode',
'vale' => $mode
'value' => $mode
);

} else {
Expand All @@ -80,13 +80,12 @@ function edd_get_payments( $args = array() ) {
$payment_args['meta_query'] = array(
array(
'key' => '_edd_payment_mode',
'vale' => $mode
'value' => $mode
)
);

}
}

$payments = get_posts( apply_filters( 'edd_get_payments_args', $payment_args ) );
if($payments) {
return $payments;
Expand Down

0 comments on commit ee6d93c

Please sign in to comment.