diff --git a/woocommerce/cart/cart-empty.php b/woocommerce/cart/cart-empty.php index 155ae52..1801206 100644 --- a/woocommerce/cart/cart-empty.php +++ b/woocommerce/cart/cart-empty.php @@ -30,7 +30,7 @@ do_action( 'woocommerce_cart_is_empty' ); if ( wc_get_page_id( 'shop' ) > 0 ) : ?>

- +

diff --git a/woocommerce/cart/proceed-to-checkout-button.php b/woocommerce/cart/proceed-to-checkout-button.php index a866f19..344bf7d 100644 --- a/woocommerce/cart/proceed-to-checkout-button.php +++ b/woocommerce/cart/proceed-to-checkout-button.php @@ -19,7 +19,7 @@ */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; // Exit if accessed directly. } ?> diff --git a/woocommerce/checkout/form-coupon.php b/woocommerce/checkout/form-coupon.php index 1d0bb70..eab50c1 100644 --- a/woocommerce/checkout/form-coupon.php +++ b/woocommerce/checkout/form-coupon.php @@ -17,7 +17,7 @@ */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; // Exit if accessed directly. } if ( ! wc_coupons_enabled() ) { diff --git a/woocommerce/global/form-login.php b/woocommerce/global/form-login.php index 5a62175..f6f6e17 100644 --- a/woocommerce/global/form-login.php +++ b/woocommerce/global/form-login.php @@ -17,7 +17,7 @@ */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; // Exit if accessed directly. } if ( is_user_logged_in() ) { diff --git a/woocommerce/loop/add-to-cart.php b/woocommerce/loop/add-to-cart.php index b204025..705a728 100644 --- a/woocommerce/loop/add-to-cart.php +++ b/woocommerce/loop/add-to-cart.php @@ -19,6 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } + global $product; echo apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '
%s
', diff --git a/woocommerce/loop/orderby.php b/woocommerce/loop/orderby.php index 074cfa4..9f456f7 100644 --- a/woocommerce/loop/orderby.php +++ b/woocommerce/loop/orderby.php @@ -17,7 +17,7 @@ */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; } ?> diff --git a/woocommerce/myaccount/downloads.php b/woocommerce/myaccount/downloads.php index 9ceb4db..701a924 100644 --- a/woocommerce/myaccount/downloads.php +++ b/woocommerce/myaccount/downloads.php @@ -38,7 +38,7 @@ do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?>
- +
diff --git a/woocommerce/myaccount/form-login.php b/woocommerce/myaccount/form-login.php index 5f629b0..8aaeae0 100644 --- a/woocommerce/myaccount/form-login.php +++ b/woocommerce/myaccount/form-login.php @@ -17,7 +17,7 @@ */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; // Exit if accessed directly. } ?> diff --git a/woocommerce/product-searchform.php b/woocommerce/product-searchform.php index 8c2d0af..d0db6eb 100644 --- a/woocommerce/product-searchform.php +++ b/woocommerce/product-searchform.php @@ -23,11 +23,10 @@ if ( ! defined( 'ABSPATH' ) ) { ?> diff --git a/woocommerce/single-product/short-description.php b/woocommerce/single-product/short-description.php index c417f54..05b63b5 100644 --- a/woocommerce/single-product/short-description.php +++ b/woocommerce/single-product/short-description.php @@ -17,7 +17,7 @@ */ if ( ! defined( 'ABSPATH' ) ) { - exit; // Exit if accessed directly + exit; // Exit if accessed directly. } global $post;