Ticket #33283: 33283.diff
| File 33283.diff, 2.1 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/plugins.php
88 88 } 89 89 90 90 if ( empty($plugins) ) { 91 wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s ") );91 wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s&empty=$action") ); 92 92 exit; 93 93 } 94 94 … … 115 115 else 116 116 $plugins = array(); 117 117 118 if ( empty( $plugins ) ) { 119 wp_redirect( self_admin_url( "plugins.php?plugin_status=$status&paged=$page&s=$s&empty=$action" ) ); 120 exit; 121 } 122 118 123 $title = __( 'Update Plugins' ); 119 124 $parent_file = 'plugins.php'; 120 125 … … 195 200 $plugins = array_diff( $plugins, array_filter( $plugins, 'is_plugin_active_for_network' ) ); 196 201 } 197 202 if ( empty($plugins) ) { 198 wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s ") );203 wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s&empty=$action") ); 199 204 exit; 200 205 } 201 206 … … 221 226 //$_POST = from the plugin form; $_GET = from the FTP details screen. 222 227 $plugins = isset( $_REQUEST['checked'] ) ? (array) $_REQUEST['checked'] : array(); 223 228 if ( empty( $plugins ) ) { 224 wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s ") );229 wp_redirect( self_admin_url("plugins.php?plugin_status=$status&paged=$page&s=$s&empty=$action") ); 225 230 exit; 226 231 } 227 232 … … 443 448 <div id="message" class="updated notice is-dismissible"><p><?php _e('Selected plugins <strong>deactivated</strong>.'); ?></p></div> 444 449 <?php elseif ( 'update-selected' == $action ) : ?> 445 450 <div id="message" class="updated notice is-dismissible"><p><?php _e('No out of date plugins were selected.'); ?></p></div> 451 <?php elseif ( isset($_GET['empty']) ) : 452 $previous_action = str_replace( '-selected', '', $_GET['empty'] ); ?> 453 <div id="message" class="error notice is-dismissible"><p><?php printf( __('Please select one or more plugins to %s.'), $previous_action ); ?></p></div> 446 454 <?php endif; ?> 447 455 448 456 <div class="wrap">