IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | if ( empty($plugins) ) { |
| 95 | | wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s") ); |
| | 95 | wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s&empty=$action") ); |
| 96 | 96 | exit; |
| 97 | 97 | } |
| 98 | 98 | |
| … |
… |
|
| 128 | 128 | else |
| 129 | 129 | $plugins = array(); |
| 130 | 130 | |
| | 131 | if ( empty( $plugins ) ) { |
| | 132 | wp_redirect( self_admin_url( "plugins.php?plugin_status=$status&paged=$page&s=$s&empty=$action" ) ); |
| | 133 | exit; |
| | 134 | } |
| | 135 | |
| 131 | 136 | $title = __( 'Update Plugins' ); |
| 132 | 137 | $parent_file = 'plugins.php'; |
| 133 | 138 | |
| … |
… |
|
| 206 | 211 | $plugins = array_diff( $plugins, array_filter( $plugins, 'is_plugin_active_for_network' ) ); |
| 207 | 212 | } |
| 208 | 213 | if ( empty($plugins) ) { |
| 209 | | wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s") ); |
| | 214 | wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s&empty=$action") ); |
| 210 | 215 | exit; |
| 211 | 216 | } |
| 212 | 217 | |
| … |
… |
|
| 236 | 241 | //$_POST = from the plugin form; $_GET = from the FTP details screen. |
| 237 | 242 | $plugins = isset( $_REQUEST['checked'] ) ? (array) $_REQUEST['checked'] : array(); |
| 238 | 243 | if ( empty( $plugins ) ) { |
| 239 | | wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s") ); |
| | 244 | wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s&empty=$action") ); |
| 240 | 245 | exit; |
| 241 | 246 | } |
| 242 | 247 | |
| … |
… |
|
| 473 | 478 | <div id="message" class="updated notice is-dismissible"><p><?php _e('Selected plugins <strong>deactivated</strong>.'); ?></p></div> |
| 474 | 479 | <?php elseif ( 'update-selected' == $action ) : ?> |
| 475 | 480 | <div id="message" class="updated notice is-dismissible"><p><?php _e('All selected plugins are up to date.'); ?></p></div> |
| | 481 | <?php elseif ( isset($_GET['empty']) ) : |
| | 482 | $previous_action = str_replace( '-selected', '', $_GET['empty'] ); ?> |
| | 483 | <div id="message" class="error notice is-dismissible"><p><?php printf( __('Please select one or more plugins to %s.'), esc_html( $previous_action ) ); ?></p></div> |
| 476 | 484 | <?php endif; ?> |
| 477 | 485 | |
| 478 | 486 | <div class="wrap"> |