Changeset 10582 for trunk/src/bp-core/bp-core-update.php
- Timestamp:
- 02/12/2016 09:01:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-update.php
r10497 r10582 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. … … 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
Note: See TracChangeset
for help on using the changeset viewer.