Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions admin/class-boldgrid-backup-admin-auto-updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ public function wordpress_option_updated( $old_value, $new_value, $option ) {
$settings['auto_update'][ $update_type ][ $offer ] = in_array( $offer, $enabled_offers, true ) ? '1' : '0';
}

/*
* The above loop cannot account for the presence of a plugin or theme in the $enabled_offers
* array, that does not yet exist in the auto update settings. This will be the case if a new plugin or theme is installed
* before they settings for that theme or plugin have been set in the Total Upkeep settings page. This will ensure that
* scenario is covered.
*/
foreach ( $enabled_offers as $enabled_offer ) {
$settings['auto_update'][ $update_type ][ $enabled_offer ] = '1';
}

// Save the settings.
$core->settings->save( $settings );
}
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Have a problem? First, take a look at our [Getting Started](https://www.boldgrid

= 1.14.3 =

Release date: August 12th, 2020
Release date: August 13th, 2020

* Update: Updated Auto Update features to utilize the WordPress 5.5+ Auto Update UI.

Expand Down