Plugin Directory


Ignore:
Timestamp:
05/13/2021 06:38:00 PM (5 years ago)
Author:
timmydcrawford
Message:

Release v2.3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-admin/trunk/src/Install.php

    r2506717 r2531361  
    299299            is_primary boolean DEFAULT 0 NOT NULL,
    300300            actioned_text varchar(255) NOT NULL,
     301            nonce_action varchar(255) NULL DEFAULT NULL,
     302            nonce_name varchar(255) NULL DEFAULT NULL,
    301303            PRIMARY KEY (action_id),
    302304            KEY note_id (note_id)
     
    426428        foreach ( self::get_db_update_callbacks() as $version => $update_callbacks ) {
    427429            if ( version_compare( $current_db_version, $version, '<' ) ) {
     430                $completed_version_updates = 0;
     431
    428432                foreach ( $update_callbacks as $update_callback ) {
    429433                    $pending_jobs = WC()->queue()->search(
     
    447451                    );
    448452
     453                    $completed_version_updates += count( $complete_jobs );
     454
    449455                    if ( empty( $pending_jobs ) && empty( $complete_jobs ) ) {
    450456                        WC()->queue()->schedule_single(
     
    458464
    459465                    $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 );
    460475                }
    461476            }
     
    498513            'wc-admin-home-screen-feedback',
    499514            'wc-admin-effortless-payments-by-mollie',
     515            'wc-admin-google-ads-and-marketing',
    500516        );
    501517
Note: See TracChangeset for help on using the changeset viewer.