Merge branch '17355-SplitAndFilter' of github.com:roylindauer/woocommerce into 17355-SplitAndFilter

This commit is contained in:
Roy Lindauer 2018-03-12 10:58:31 -07:00
commit 7016762dd5
1 changed files with 3 additions and 2 deletions

View File

@ -374,9 +374,10 @@ class WC_Widget_Layered_Nav extends WC_Widget {
// Maybe store a transient of the count values. // Maybe store a transient of the count values.
$cache = apply_filters( 'woocommerce_layered_nav_count_maybe_cache', true ); $cache = apply_filters( 'woocommerce_layered_nav_count_maybe_cache', true );
if ( true === $cache ) { if ( true === $cache ) {
$cached_counts = (array) get_transient( 'wc_layered_nav_counts_' . $taxonomy ); $cached_counts = (array) get_transient( 'wc_layered_nav_counts_' . $taxonomy );
} else {
$cached_counts = array();
} }
if ( ! isset( $cached_counts[ $query_hash ] ) ) { if ( ! isset( $cached_counts[ $query_hash ] ) ) {