diff --git a/src/bp-core/bp-core-update.php b/src/bp-core/bp-core-update.php
index f1aedda..7fbdd30 100644
|
a
|
b
|
function bp_version_updater() { |
| 205 | 205 | ) ); |
| 206 | 206 | |
| 207 | 207 | require_once( buddypress()->plugin_dir . '/bp-core/admin/bp-core-admin-schema.php' ); |
| | 208 | $switched_to_root_blog = false; |
| | 209 | |
| | 210 | // Make sure the current blog is set to the root blog |
| | 211 | if ( ! bp_is_root_blog() ) { |
| | 212 | switch_to_blog( bp_get_root_blog_id() ); |
| | 213 | bp_register_taxonomies(); |
| | 214 | |
| | 215 | $switched_to_root_blog = true; |
| | 216 | } |
| 208 | 217 | |
| 209 | 218 | // Install BP schema and activate only Activity and XProfile. |
| 210 | 219 | if ( bp_is_install() ) { |
| … |
… |
function bp_version_updater() { |
| 272 | 281 | |
| 273 | 282 | // Bump the version. |
| 274 | 283 | bp_version_bump(); |
| | 284 | |
| | 285 | if ( $switched_to_root_blog ) { |
| | 286 | restore_current_blog(); |
| | 287 | } |
| 275 | 288 | } |
| 276 | 289 | |
| 277 | 290 | /** |