diff --git a/src/bp-core/bp-core-taxonomy.php b/src/bp-core/bp-core-taxonomy.php
index dedf1ce..6a0a7d8 100644
|
a
|
b
|
function bp_set_object_terms( $object_id, $terms, $taxonomy, $append = false ) { |
| 64 | 64 | |
| 65 | 65 | if ( ! $is_root_blog ) { |
| 66 | 66 | switch_to_blog( bp_get_root_blog_id() ); |
| | 67 | bp_register_taxonomies(); |
| 67 | 68 | } |
| 68 | 69 | |
| 69 | 70 | $retval = wp_set_object_terms( $object_id, $terms, $taxonomy, $append ); |
| … |
… |
function bp_get_object_terms( $object_ids, $taxonomies, $args = array() ) { |
| 92 | 93 | |
| 93 | 94 | if ( ! $is_root_blog ) { |
| 94 | 95 | switch_to_blog( bp_get_root_blog_id() ); |
| | 96 | bp_register_taxonomies(); |
| 95 | 97 | } |
| 96 | 98 | |
| 97 | 99 | $retval = wp_get_object_terms( $object_ids, $taxonomies, $args ); |
| … |
… |
function bp_remove_object_terms( $object_id, $terms, $taxonomy ) { |
| 120 | 122 | |
| 121 | 123 | if ( ! $is_root_blog ) { |
| 122 | 124 | switch_to_blog( bp_get_root_blog_id() ); |
| | 125 | bp_register_taxonomies(); |
| 123 | 126 | } |
| 124 | 127 | |
| 125 | 128 | $retval = wp_remove_object_terms( $object_id, $terms, $taxonomy ); |