diff --git wp-admin/includes/class-wp-plugins-list-table.php wp-admin/includes/class-wp-plugins-list-table.php
index 1ade73c..b6a2853 100644
|
|
class WP_Plugins_List_Table extends WP_List_Table { |
387 | 387 | list( $plugin_file, $plugin_data ) = $item; |
388 | 388 | $context = $status; |
389 | 389 | $screen = $this->screen; |
| 390 | $is_checked = isset( $_GET['checked'] ) && in_array( $plugin_file, $_GET['checked'] ) ? true : false; |
390 | 391 | |
391 | 392 | // Pre-order. |
392 | 393 | $actions = array( |
… |
… |
class WP_Plugins_List_Table extends WP_List_Table { |
504 | 505 | $checkbox = ''; |
505 | 506 | } else { |
506 | 507 | $checkbox = "<label class='screen-reader-text' for='" . $checkbox_id . "' >" . sprintf( __( 'Select %s' ), $plugin_data['Name'] ) . "</label>" |
507 | | . "<input type='checkbox' name='checked[]' value='" . esc_attr( $plugin_file ) . "' id='" . $checkbox_id . "' />"; |
| 508 | . "<input type='checkbox' name='checked[]' value='" . esc_attr( $plugin_file ) . "'" |
| 509 | . ( $is_checked ? " checked='checked'" : "" ) |
| 510 | . " id='" . $checkbox_id . "' />"; |
508 | 511 | } |
509 | 512 | if ( 'dropins' != $context ) { |
510 | 513 | $description = '<p>' . ( $plugin_data['Description'] ? $plugin_data['Description'] : ' ' ) . '</p>'; |
diff --git wp-admin/plugins.php wp-admin/plugins.php
index 29bca4a..6cbc756 100644
|
|
if ( $action ) { |
99 | 99 | update_option( 'recently_activated', $recent ); |
100 | 100 | } |
101 | 101 | |
102 | | wp_redirect( self_admin_url("plugins.php?activate-multi=true&plugin_status=$status&paged=$page&s=$s") ); |
| 102 | $post_activation_url = self_admin_url( "plugins.php?activate-multi=true&plugin_status=$status&paged=$page&s=$s" ); |
| 103 | foreach ( $plugins as $checked_plugin ) { |
| 104 | $post_activation_url = add_query_arg( 'checked[]', $checked_plugin, $post_activation_url ); |
| 105 | } |
| 106 | wp_redirect( $post_activation_url ); |
103 | 107 | exit; |
104 | 108 | |
105 | 109 | case 'update-selected' : |
… |
… |
if ( $action ) { |
203 | 207 | update_option( 'recently_activated', $deactivated + (array) get_option( 'recently_activated' ) ); |
204 | 208 | } |
205 | 209 | |
206 | | wp_redirect( self_admin_url("plugins.php?deactivate-multi=true&plugin_status=$status&paged=$page&s=$s") ); |
| 210 | $post_deactivation_url = self_admin_url( "plugins.php?deactivate-multi=true&plugin_status=$status&paged=$page&s=$s" ); |
| 211 | foreach ( $plugins as $checked_plugin ) { |
| 212 | $post_deactivation_url = add_query_arg( 'checked[]', $checked_plugin, $post_deactivation_url ); |
| 213 | } |
| 214 | wp_redirect( $post_deactivation_url ); |
207 | 215 | exit; |
208 | 216 | |
209 | 217 | case 'delete-selected': |