Merged in release/release-1.09 (pull request #10)
Release/release 1.09 * Install missing plugins * rs set to 1 * rebase pantheon for aws * rebase pantheon for aws * prod config change * prod config change * fix campaing issue * revert Approved-by: Jay Sharma
This commit is contained in:
committed by
Jay Sharma
parent
779393381f
commit
22f10a9edd
@@ -28,6 +28,7 @@ function wc_template_redirect() {
|
||||
|
||||
// When on the checkout with an empty cart, redirect to cart page.
|
||||
if ( is_page( wc_get_page_id( 'checkout' ) ) && wc_get_page_id( 'checkout' ) !== wc_get_page_id( 'cart' ) && WC()->cart->is_empty() && empty( $wp->query_vars['order-pay'] ) && ! isset( $wp->query_vars['order-received'] ) && ! is_customize_preview() && apply_filters( 'woocommerce_checkout_redirect_empty_cart', true ) ) {
|
||||
wc_add_notice( __( 'Checkout is not available whilst your cart is empty.', 'woocommerce' ), 'notice' );
|
||||
wp_safe_redirect( wc_get_cart_url() );
|
||||
exit;
|
||||
|
||||
@@ -338,12 +339,6 @@ function wc_body_class( $classes ) {
|
||||
}
|
||||
}
|
||||
|
||||
if ( wc_current_theme_is_fse_theme() ) {
|
||||
|
||||
$classes[] = 'woocommerce-uses-block-theme';
|
||||
|
||||
}
|
||||
|
||||
if ( wc_block_theme_has_styles_for_element( 'button' ) ) {
|
||||
|
||||
$classes[] = 'woocommerce-block-theme-has-button-styles';
|
||||
|
||||
Reference in New Issue
Block a user