Merge pull request #23791 from woocommerce/fix/23630
Clear notices when calling cart-errors.php template
This commit is contained in:
commit
359fd9d7d5
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in New Issue