diff --git a/src/wp-admin/plugins.php b/src/wp-admin/plugins.php
index 164467952f..d8bb36ec63 100644
a
|
b
|
if ( $action ) { |
485 | 485 | $plugins = (array) wp_unslash( $_POST['checked'] ); |
486 | 486 | |
487 | 487 | if ( 'enable-auto-update-selected' === $action ) { |
488 | | $new_auto_updates = array_merge( $auto_updates, $plugins ); |
489 | | $new_auto_updates = array_unique( $new_auto_updates ); |
| 488 | $new_auto_updates = array_diff( $auto_updates, $plugins ); |
490 | 489 | $query_args = array( 'enabled-auto-update-multi' => 'true' ); |
491 | 490 | } else { |
492 | | $new_auto_updates = array_diff( $auto_updates, $plugins ); |
| 491 | $new_auto_updates = array_merge( $auto_updates, $plugins ); |
| 492 | $new_auto_updates = array_unique( $new_auto_updates ); |
493 | 493 | $query_args = array( 'disabled-auto-update-multi' => 'true' ); |
494 | 494 | } |
495 | 495 | |