Skip to content

Commit

Permalink
Avoid duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Feb 5, 2024
1 parent e508a8b commit 80ef9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-user-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function add_virtual_subscriptions( $args = array() ) {
);

foreach ( $term_query->get_terms() as $term ) {
$this->results[] = new Subscription( $term );
$this->results[ $term->term_id ] = new Subscription( $term );
$this->total_users += 1;
}
}
Expand Down

0 comments on commit 80ef9e5

Please sign in to comment.