From 76e8875ef4d61e6af1067cf575d0d6abf3283f1e Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 22 Mar 2018 13:10:55 -0600 Subject: [PATCH] Formatting and remove capitalization Making identical to Woo files; Add spaces; Formatting; Add period to exit text; loop/orderby.php removes exit text, this is identical to Woo files and we should keep it unless they change. This will make it easier to compare templates; --- woocommerce/cart/cart-empty.php | 2 +- woocommerce/cart/proceed-to-checkout-button.php | 2 +- woocommerce/checkout/form-coupon.php | 2 +- woocommerce/global/form-login.php | 2 +- woocommerce/loop/add-to-cart.php | 1 + woocommerce/loop/orderby.php | 2 +- woocommerce/myaccount/downloads.php | 2 +- woocommerce/myaccount/form-login.php | 2 +- woocommerce/product-searchform.php | 3 +-- woocommerce/single-product/short-description.php | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) 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;