Skip to content

Commit

Permalink
Merge pull request #579 from WordImpress/issue/563
Browse files Browse the repository at this point in the history
Tested #563 and give_set_error works well in admin
  • Loading branch information
Devin Walker committed Apr 11, 2016
2 parents cfe8aa5 + 9fedf80 commit 7df3257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/admin/payments/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ function give_update_payment_details( $data ) {
}

if ( ! $customer->create( $customer_data ) ) {
// Failed to crete the new customer, assume the previous customer
// Failed to crete the new donor, assume the previous donor
$customer_changed = false;
$customer = new Give_Customer( $curr_customer_id );
give_set_error( 'give-payment-new-customer-fail', __( 'Error creating new customer', 'give' ) );
give_set_error( 'give-payment-new-customer-fail', __( 'Error creating new donor', 'give' ) );
}
}

Expand Down

0 comments on commit 7df3257

Please sign in to comment.