diff --git a/bp-core/admin/bp-core-admin-schema.php b/bp-core/admin/bp-core-admin-schema.php
index 523a4db..2c1089a 100644
a
|
b
|
function bp_core_install_emails() { |
695 | 695 | continue; |
696 | 696 | } |
697 | 697 | |
698 | | $term_ids = wp_set_post_terms( $post_id, $id, bp_get_email_tax_type() ); |
699 | | foreach ( $term_ids as $term_id ) { |
700 | | wp_update_term( (int) $term_id, bp_get_email_tax_type(), array( |
| 698 | $term_ids = wp_set_object_terms( $post_id, $id, bp_get_email_tax_type() ); |
| 699 | |
| 700 | foreach ( $term_ids as $term_taxonomy_id ) { |
| 701 | $term = get_term_by( 'term_taxonomy_id', (int) $term_taxonomy_id, bp_get_email_tax_type()); |
| 702 | wp_update_term( (int) $term->term_id, bp_get_email_tax_type(), array( |
701 | 703 | 'description' => $descriptions[ $id ], |
702 | 704 | ) ); |
703 | 705 | } |