Changeset 2531361 for woocommerce-admin/trunk/src/Install.php
- Timestamp:
- 05/13/2021 06:38:00 PM (5 years ago)
- File:
-
- 1 edited
-
woocommerce-admin/trunk/src/Install.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-admin/trunk/src/Install.php
r2506717 r2531361 299 299 is_primary boolean DEFAULT 0 NOT NULL, 300 300 actioned_text varchar(255) NOT NULL, 301 nonce_action varchar(255) NULL DEFAULT NULL, 302 nonce_name varchar(255) NULL DEFAULT NULL, 301 303 PRIMARY KEY (action_id), 302 304 KEY note_id (note_id) … … 426 428 foreach ( self::get_db_update_callbacks() as $version => $update_callbacks ) { 427 429 if ( version_compare( $current_db_version, $version, '<' ) ) { 430 $completed_version_updates = 0; 431 428 432 foreach ( $update_callbacks as $update_callback ) { 429 433 $pending_jobs = WC()->queue()->search( … … 447 451 ); 448 452 453 $completed_version_updates += count( $complete_jobs ); 454 449 455 if ( empty( $pending_jobs ) && empty( $complete_jobs ) ) { 450 456 WC()->queue()->schedule_single( … … 458 464 459 465 $loop++; 466 467 } 468 469 // Users have experienced concurrency issues where all update callbacks 470 // have run but the version option hasn't been updated. If all the updates 471 // for a version are complete, update the version option to reflect that. 472 // See: https:// github.com/woocommerce/woocommerce-admin/issues/5058. 473 if ( count( $update_callbacks ) === $completed_version_updates ) { 474 self::update_db_version( $version ); 460 475 } 461 476 } … … 498 513 'wc-admin-home-screen-feedback', 499 514 'wc-admin-effortless-payments-by-mollie', 515 'wc-admin-google-ads-and-marketing', 500 516 ); 501 517
Note: See TracChangeset
for help on using the changeset viewer.