forked from LiveCarta/LiveCartaWP
LAW-8010
This commit is contained in:
@@ -176,7 +176,7 @@ function getFaaTaxonomyIds()
|
|||||||
$tIds = [];
|
$tIds = [];
|
||||||
foreach ($posts as $post) {
|
foreach ($posts as $post) {
|
||||||
$taxonomies = get_the_terms($post, 'fac_category_type');
|
$taxonomies = get_the_terms($post, 'fac_category_type');
|
||||||
if (count($taxonomies) > 0) {
|
if (is_countable($taxonomies) && count($taxonomies) > 0) {
|
||||||
foreach ($taxonomies as $taxonomy) {
|
foreach ($taxonomies as $taxonomy) {
|
||||||
if (!in_array($taxonomy->term_id, $tIds)) {
|
if (!in_array($taxonomy->term_id, $tIds)) {
|
||||||
$tIds[] = $taxonomy->term_id;
|
$tIds[] = $taxonomy->term_id;
|
||||||
|
|||||||
Reference in New Issue
Block a user