From 8f8b6aaf519449129b6404529a743dc51b09ed47 Mon Sep 17 00:00:00 2001 From: Leo Germani Date: Thu, 16 Aug 2018 13:04:22 -0300 Subject: [PATCH] fix last commit (#103) --- src/theme-helper/template-tags.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/theme-helper/template-tags.php b/src/theme-helper/template-tags.php index d97a26b98..b1f1e6b6a 100644 --- a/src/theme-helper/template-tags.php +++ b/src/theme-helper/template-tags.php @@ -213,7 +213,8 @@ function tainacan_the_faceted_search() { function tainacan_get_term() { if ( is_tax() ) { $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; } }