Including $woocommerce global on login-form template to fix "Undefined variable: woocommerce" and "Call to a member function nonce_field() on a non-object" errors when checking-out without being logged in.
This commit is contained in:
parent
c312c1ba95
commit
1b22a18c2a
|
@ -3,7 +3,7 @@
|
||||||
* Login Form
|
* Login Form
|
||||||
*/
|
*/
|
||||||
|
|
||||||
global $message;
|
global $message, $woocommerce;
|
||||||
|
|
||||||
if (is_user_logged_in()) return;
|
if (is_user_logged_in()) return;
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue