Changeset 6935 for trunk/src/includes/core/update.php
- Timestamp:
- 11/12/2019 05:28:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/update.php
r6934 r6935 339 339 /** 2.6 Branch ********************************************************/ 340 340 341 // 2.6 Alpha342 if ( $raw_db_version < 261) {341 // Smaller installs run the upgrades directly 342 if ( ! bbp_is_large_install() ) { 343 343 344 344 /** 345 345 * Upgrade user favorites and subscriptions 346 *347 * @link https://bbpress.trac.wordpress.org/ticket/2959348 346 */ 349 if ( ! bbp_is_large_install()) {347 if ( $raw_db_version < 261 ) { 350 348 bbp_admin_upgrade_user_favorites(); 351 349 bbp_admin_upgrade_user_topic_subscriptions(); 352 350 bbp_admin_upgrade_user_forum_subscriptions(); 353 } else { 351 } 352 353 /** 354 * Upgrade user engagements 355 */ 356 if ( $raw_db_version < 262 ) { 357 bbp_admin_upgrade_user_engagements(); 358 } 359 360 /** 361 * Repair forum hidden reply count 362 */ 363 if ( $raw_db_version < 263 ) { 364 bbp_admin_repair_forum_hidden_reply_count(); 365 } 366 367 // Large installs require manual intervention 368 } else { 369 370 /** 371 * Upgrade user favorites and subscriptions 372 */ 373 if ( $raw_db_version < 261 ) { 354 374 bbp_add_pending_upgrade( 'bbp-user-favorites-move' ); 355 375 bbp_add_pending_upgrade( 'bbp-user-topic-subscriptions-move' ); … … 359 379 update_option( '_bbp_engagements_strategy', 'user' ); 360 380 } 361 }362 363 // 2.6 Beta/RC/GM364 if ( $raw_db_version < 262 ) {365 381 366 382 /** 367 383 * Upgrade user engagements 368 *369 * @link https://bbpress.trac.wordpress.org/ticket/3068370 384 */ 371 if ( ! bbp_is_large_install() ) { 372 bbp_admin_upgrade_user_engagements(); 373 } else { 385 if ( $raw_db_version < 262 ) { 374 386 bbp_add_pending_upgrade( 'bbp-user-topic-engagements-move' ); 375 387 376 388 // Set strategy to pre-2.6 on large network 377 389 update_option( '_bbp_engagements_strategy', 'user' ); 390 } 391 392 /** 393 * Upgrade user engagements 394 */ 395 if ( $raw_db_version < 263 ) { 396 bbp_add_pending_upgrade( 'bbp-forum-hidden-replies' ); 378 397 } 379 398 }
Note: See TracChangeset
for help on using the changeset viewer.