From ddb357cc48e9e905f6342290c816d6080bfbb9bb Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 9 Nov 2017 10:30:27 +0000 Subject: [PATCH] Missing var --- includes/wc-template-functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index c48427c9978..952664db031 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -1699,6 +1699,8 @@ if ( ! function_exists( 'woocommerce_products_will_display' ) ) { return true; } + $display_type = ''; + if ( is_shop() ) { $display_type = get_option( 'woocommerce_shop_page_display', '' ); } elseif ( is_product_category() ) {