Merge pull request #28469 from tyrann0us/patch-1

Simplify `reload_checkout` expression
This commit is contained in:
Roy Ho 2020-12-04 12:41:18 -08:00 committed by GitHub
commit 231ab353dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ class WC_AJAX {
$woocommerce_checkout_payment = ob_get_clean(); $woocommerce_checkout_payment = ob_get_clean();
// Get messages if reload checkout is not true. // Get messages if reload checkout is not true.
$reload_checkout = isset( WC()->session->reload_checkout ) ? true : false; $reload_checkout = isset( WC()->session->reload_checkout );
if ( ! $reload_checkout ) { if ( ! $reload_checkout ) {
$messages = wc_print_notices( true ); $messages = wc_print_notices( true );
} else { } else {