Skip to content

Commit

Permalink
Merge pull request #965 from publishpress/release-3.11.3
Browse files Browse the repository at this point in the history
Release 3.11.3
  • Loading branch information
agapetry authored Oct 23, 2023
2 parents 60635f2 + 79fc218 commit 68baf91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/PublishPress/Permissions/TermFiltersCount.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function fltGetTerms($terms, $taxonomies, $args)

foreach (array_keys($terms) as $k) {
foreach (array_keys($all_terms) as $key) {
if (is_object($all_terms[$key])) {
if (is_object($all_terms[$key]) && is_object($terms[$k])) {
if ($all_terms[$key]->term_taxonomy_id == $terms[$k]->term_taxonomy_id) {
$terms[$k]->count = $all_terms[$key]->count;
break;
Expand Down

0 comments on commit 68baf91

Please sign in to comment.