Merge branch '17355-SplitAndFilter' of github.com:roylindauer/woocommerce into 17355-SplitAndFilter
This commit is contained in:
commit
7016762dd5
|
@ -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 ] ) ) {
|
||||||
|
|
Loading…
Reference in New Issue