Merge pull request #7571 from SiR-DanieL/patch-2

Undefined wc_error_count fix
This commit is contained in:
Claudio Sanches 2015-02-26 12:29:40 -03:00
commit 4fda1842a7
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ class WC_Form_Handler {
$available_gateways[ $payment_method ]->validate_fields();
// Process
if ( wc_error_count() == 0 ) {
if ( wc_notice_count( 'wc_errors' ) == 0 ) {
$result = $available_gateways[ $payment_method ]->add_payment_method();
// Redirect to success/confirmation/payment page