Make WordPress Core

Changeset 48701


Ignore:
Timestamp:
07/31/2020 05:01:16 PM (6 years ago)
Author:
whyisjake
Message:

Upgrade/Install: Allow for WordPress.org to remotely disable auto-updates for plugins/themes

As auto-updates are rolled out across WordPress.org, the API response can modulate the response, ensuring that a rolled out could be stalled or staggered if needed for security or performance reasons.

Fixes #50824.
Props dd32, whyisjake, SergeyBiryukov.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-automatic-updater.php

    r48589 r48701  
    169169                } else {
    170170                        $update = ! empty( $item->autoupdate );
     171                }
     172
     173                // If the `disable_autoupdate` flag is set, override any user-choice, but allow filters.
     174                if ( ! empty( $item->disable_autoupdate ) ) {
     175                        $update = $item->disable_autoupdate;
    171176                }
    172177
Note: See TracChangeset for help on using the changeset viewer.