fix last commit (#103)

This commit is contained in:
Leo Germani 2018-08-16 13:04:22 -03:00
parent 9519266aee
commit 8f8b6aaf51
1 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,8 @@ function tainacan_the_faceted_search() {
function tainacan_get_term() { function tainacan_get_term() {
if ( is_tax() ) { if ( is_tax() ) {
$term = get_queried_object(); $term = get_queried_object();
if ( isset($term->taxonomy) && $this->is_taxonomy_a_tainacan_tax($term->taxonomy) ) { $theme_helper = \Tainacan\Theme_Helper::get_instance();
if ( isset($term->taxonomy) && $theme_helper->is_taxonomy_a_tainacan_tax($term->taxonomy) ) {
return $term; return $term;
} }
} }