From 35fc728090740b2a8b4490bc18e7eb7141b86471 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 13 Nov 2013 12:12:23 +0000 Subject: [PATCH] Login form hooks Closes #4059 --- templates/myaccount/form-login.php | 20 +++++++++++++++++--- templates/shop/form-login.php | 15 +++++++++++---- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/templates/myaccount/form-login.php b/templates/myaccount/form-login.php index 04db2334f7a..d31ddd381a0 100644 --- a/templates/myaccount/form-login.php +++ b/templates/myaccount/form-login.php @@ -4,12 +4,11 @@ * * @author WooThemes * @package WooCommerce/Templates - * @version 1.6.4 + * @version 2.1.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly - -global $woocommerce; ?> +?> @@ -26,6 +25,9 @@ global $woocommerce; ?>

+ + +

@@ -34,6 +36,9 @@ global $woocommerce; ?>

+ + +

@@ -44,6 +49,9 @@ global $woocommerce; ?>

+ + +
@@ -56,6 +64,8 @@ global $woocommerce; ?>
+ +

@@ -78,12 +88,16 @@ global $woocommerce; ?>

+

+ + +
diff --git a/templates/shop/form-login.php b/templates/shop/form-login.php index f4fca1f2c0b..ce73c24e9bf 100644 --- a/templates/shop/form-login.php +++ b/templates/shop/form-login.php @@ -4,16 +4,18 @@ * * @author WooThemes * @package WooCommerce/Templates - * @version 1.6.4 + * @version 2.1.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly -global $woocommerce; - -if (is_user_logged_in()) return; +if ( is_user_logged_in() ) + return; ?>
> + + +

@@ -26,6 +28,8 @@ if (is_user_logged_in()) return;

+ +

@@ -39,4 +43,7 @@ if (is_user_logged_in()) return;

+ + +
\ No newline at end of file