Changeset 48703
- Timestamp:
- 07/31/2020 05:19:34 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugins-list-table.php
r48678 r48703 280 280 281 281 if ( $this->show_autoupdates ) { 282 if ( in_array( $plugin_file, $auto_updates, true ) ) { 283 $plugins['auto-update-enabled'][ $plugin_file ] = $plugins['all'][ $plugin_file ]; 282 $enabled = in_array( $plugin_file, $auto_updates, true ) && $plugin_data['update-supported']; 283 if ( isset( $plugin_data['auto-update-forced'] ) ) { 284 $enabled = (bool) $plugin_data['auto-update-forced']; 285 } 286 287 if ( $enabled ) { 288 $plugins['auto-update-enabled'][ $plugin_file ] = $plugin_data; 284 289 } else { 285 $plugins['auto-update-disabled'][ $plugin_file ] = $plugin s['all'][ $plugin_file ];290 $plugins['auto-update-disabled'][ $plugin_file ] = $plugin_data; 286 291 } 287 292 }
Note: See TracChangeset
for help on using the changeset viewer.