Skip to content

Commit

Permalink
Use correct key when setting group terms
Browse files Browse the repository at this point in the history
Fixes #403

props @sjeng
  • Loading branch information
boonebgorges committed May 2, 2014
1 parent 9eb9916 commit a5945ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/integration-groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ function get_group_terms( $terms = array() ) {
);
}

if ( ! in_array( $p->ID, $terms[ $p_term->name ]['posts'] ) ) {
$terms[ $p_term->name ]['posts'][] = $p->ID;
if ( ! in_array( $p->ID, $terms[ $p_term->slug ]['posts'] ) ) {
$terms[ $p_term->slug ]['posts'][] = $p->ID;
}
}
}
Expand Down

0 comments on commit a5945ba

Please sign in to comment.