Missing var

This commit is contained in:
Mike Jolley 2017-11-09 10:30:27 +00:00
parent c058921c9c
commit ddb357cc48
1 changed files with 2 additions and 0 deletions

View File

@ -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() ) {