Permalink
Browse files

Use correct key when setting group terms

Fixes #403

props @sjeng
  • Loading branch information...
1 parent 9eb9916 commit a5945ba799406dca92d7dd62faa0ddbe44becd0e @boonebgorges committed May 2, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 includes/integration-groups.php
View
4 includes/integration-groups.php
@@ -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;
}
}
}

0 comments on commit a5945ba

Please sign in to comment.