undefined wc_error_count fix

This commit is contained in:
Nicola Mustone 2015-02-26 16:18:11 +01:00
parent 7674ca9ec3
commit 0fc973b5aa
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