diff --git src/bp-core/bp-core-taxonomy.php src/bp-core/bp-core-taxonomy.php
index dedf1ce..b401a23 100644
|
|
|
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_post_types(); |
| | 68 | bp_register_taxonomies(); |
| 67 | 69 | } |
| 68 | 70 | |
| 69 | 71 | $retval = wp_set_object_terms( $object_id, $terms, $taxonomy, $append ); |
| … |
… |
function bp_get_object_terms( $object_ids, $taxonomies, $args = array() ) { |
| 92 | 94 | |
| 93 | 95 | if ( ! $is_root_blog ) { |
| 94 | 96 | switch_to_blog( bp_get_root_blog_id() ); |
| | 97 | bp_register_post_types(); |
| | 98 | bp_register_taxonomies(); |
| 95 | 99 | } |
| 96 | 100 | |
| 97 | 101 | $retval = wp_get_object_terms( $object_ids, $taxonomies, $args ); |
| … |
… |
function bp_remove_object_terms( $object_id, $terms, $taxonomy ) { |
| 120 | 124 | |
| 121 | 125 | if ( ! $is_root_blog ) { |
| 122 | 126 | switch_to_blog( bp_get_root_blog_id() ); |
| | 127 | bp_register_post_types(); |
| | 128 | bp_register_taxonomies(); |
| 123 | 129 | } |
| 124 | 130 | |
| 125 | 131 | $retval = wp_remove_object_terms( $object_id, $terms, $taxonomy ); |