mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Upgrade/Install: Account for the automatic_updater_disabled filter in core auto-update settings UI.
Follow-up to [49587]. Props markparnell, audrasjb. See #51742. git-svn-id: https://develop.svn.wordpress.org/trunk@49592 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0d27319c73
commit
5fa6731441
@ -348,8 +348,13 @@ function core_auto_updates_settings() {
|
||||
$can_set_update_option = false;
|
||||
}
|
||||
|
||||
if ( defined( 'AUTOMATIC_UPDATER_DISABLED' ) ) {
|
||||
if ( true === AUTOMATIC_UPDATER_DISABLED ) {
|
||||
if ( defined( 'AUTOMATIC_UPDATER_DISABLED' )
|
||||
|| has_filter( 'automatic_updater_disabled' )
|
||||
) {
|
||||
if ( true === AUTOMATIC_UPDATER_DISABLED
|
||||
/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
|
||||
|| true === apply_filters( 'automatic_updater_disabled', false )
|
||||
) {
|
||||
$upgrade_dev = false;
|
||||
$upgrade_minor = false;
|
||||
$upgrade_major = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user