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:
Brent Shepherd 2011-12-17 15:03:31 +10:00
parent c312c1ba95
commit 1b22a18c2a
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
* Login Form
*/
global $message;
global $message, $woocommerce;
if (is_user_logged_in()) return;
?>