rebase from live enviornment

This commit is contained in:
Rachit Bhargava
2024-01-09 22:14:20 -05:00
parent ff0b49a046
commit 3a22fcaa4a
15968 changed files with 2344674 additions and 45234 deletions

View File

@@ -28,7 +28,6 @@ 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;
@@ -339,6 +338,12 @@ 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';