Add missing global definition

This commit is contained in:
Andrew White 2012-02-09 15:53:29 +00:00
parent 7d03784e60
commit 1f700fd839
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
* Handle redirects before content is output - hooked into template_redirect so is_page works
**/
function woocommerce_redirects() {
global $woocommerce;
global $woocommerce, $wp_query;
// When default permalinks are enabled, redirect shop page to post type archive url
if ( isset($_GET['page_id']) && $_GET['page_id'] > 0 && get_option( 'permalink_structure' )=="" && $_GET['page_id'] == woocommerce_get_page_id('shop') ) :