Changeset 10899 for trunk/src/bp-core/bp-core-update.php
- Timestamp:
- 06/23/2016 06:31:58 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-update.php
r10825 r10899 140 140 * 141 141 * @since 1.6.0 142 *143 142 */ 144 143 function bp_version_bump() { … … 196 195 $switched_to_root_blog = false; 197 196 198 // Make sure the current blog is set to the root blog 197 // Make sure the current blog is set to the root blog. 199 198 if ( ! bp_is_root_blog() ) { 200 199 switch_to_blog( bp_get_root_blog_id() ); … … 219 218 bp_core_install(); 220 219 221 // 1.5.0220 // Version 1.5.0. 222 221 if ( $raw_db_version < 1801 ) { 223 222 bp_update_to_1_5(); … … 225 224 } 226 225 227 // 1.6.0226 // Version 1.6.0. 228 227 if ( $raw_db_version < 6067 ) { 229 228 bp_update_to_1_6(); 230 229 } 231 230 232 // 1.9.0231 // Version 1.9.0. 233 232 if ( $raw_db_version < 7553 ) { 234 233 bp_update_to_1_9(); 235 234 } 236 235 237 // 1.9.2236 // Version 1.9.2. 238 237 if ( $raw_db_version < 7731 ) { 239 238 bp_update_to_1_9_2(); 240 239 } 241 240 242 // 2.0.0241 // Version 2.0.0. 243 242 if ( $raw_db_version < 7892 ) { 244 243 bp_update_to_2_0(); 245 244 } 246 245 247 // 2.0.1246 // Version 2.0.1. 248 247 if ( $raw_db_version < 8311 ) { 249 248 bp_update_to_2_0_1(); 250 249 } 251 250 252 // 2.2.0251 // Version 2.2.0. 253 252 if ( $raw_db_version < 9181 ) { 254 253 bp_update_to_2_2(); 255 254 } 256 255 257 // 2.3.0256 // Version 2.3.0. 258 257 if ( $raw_db_version < 9615 ) { 259 258 bp_update_to_2_3(); 260 259 } 261 260 262 // 2.5.0261 // Version 2.5.0. 263 262 if ( $raw_db_version < 10440 ) { 264 263 bp_update_to_2_5(); … … 332 331 333 332 /** 334 * Remove unused metadata from database when upgrading from < 1.6. 333 * Remove unused metadata from database when upgrading from < 1.6.0. 335 334 * 336 335 * Database update methods based on version numbers. … … 381 380 382 381 /** 383 * Perform database updates for BP 1.9.2 382 * Perform database updates for BP 1.9.2. 384 383 * 385 384 * In 1.9, BuddyPress stopped registering its theme directory when it detected … … 441 440 * 442 441 * @since 2.0.1 443 *444 * @return void445 442 */ 446 443 function bp_update_to_2_0_1() { … … 540 537 * 541 538 * @since 2.2.0 542 *543 539 */ 544 540 function bp_cleanup_friendship_activities() { … … 556 552 * 557 553 * @internal Used internally to redirect BuddyPress to the about page on activation. 558 *559 554 */ 560 555 function bp_add_activation_redirect() { … … 625 620 * 626 621 * @since 1.6.0 627 *628 622 */ 629 623 function bp_activation() { … … 638 632 * Fires during the activation of BuddyPress. 639 633 * 640 * Use as of (1.6.0)634 * Use as of 1.6.0. 641 635 * 642 636 * @since 1.6.0 … … 644 638 do_action( 'bp_activation' ); 645 639 646 // @deprecated as of (1.6)640 // @deprecated as of 1.6.0 647 641 do_action( 'bp_loader_activate' ); 648 642 } … … 654 648 * 655 649 * @since 1.6.0 656 *657 650 */ 658 651 function bp_deactivation() { … … 672 665 * Fires during the deactivation of BuddyPress. 673 666 * 674 * Use as of (1.6.0)667 * Use as of 1.6.0. 675 668 * 676 669 * @since 1.6.0 … … 678 671 do_action( 'bp_deactivation' ); 679 672 680 // @deprecated as of (1.6)673 // @deprecated as of 1.6.0 681 674 do_action( 'bp_loader_deactivate' ); 682 675 } … … 688 681 * 689 682 * @since 1.6.0 690 *691 683 */ 692 684 function bp_uninstall() {
Note: See TracChangeset
for help on using the changeset viewer.