Merge pull request #23791 from woocommerce/fix/23630

Clear notices when calling cart-errors.php template
This commit is contained in:
Claudio Sanches 2019-05-22 20:40:21 -03:00 committed by GitHub
commit 359fd9d7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -272,6 +272,7 @@ class WC_Shortcode_Checkout {
if ( empty( $_POST ) && wc_notice_count( 'error' ) > 0 ) { // WPCS: input var ok, CSRF ok.
wc_get_template( 'checkout/cart-errors.php', array( 'checkout' => $checkout ) );
wc_clear_notices();
} else {