Changeset 34591
- Timestamp:
- 09/26/2015 01:10:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/plugins.php
r34551 r34591 369 369 require_once(ABSPATH . 'wp-admin/admin-footer.php'); 370 370 exit; 371 } //Endif verify-delete 372 $delete_result = delete_plugins($plugins); 371 } else { 372 $plugins_to_delete = count( $plugins ); 373 } // endif verify-delete 374 375 $delete_result = delete_plugins( $plugins ); 373 376 374 377 set_transient('plugins_delete_result_' . $user_ID, $delete_result); //Store the result in a cache rather than a URL param due to object type & length 375 wp_redirect( self_admin_url("plugins.php?deleted= true&plugin_status=$status&paged=$page&s=$s") );378 wp_redirect( self_admin_url("plugins.php?deleted=$plugins_to_delete&plugin_status=$status&paged=$page&s=$s") ); 376 379 exit; 377 380 … … 471 474 <p> 472 475 <?php 473 if ( 1 == $plugins_to_delete) {476 if ( 1 == (int) $_GET['deleted'] ) { 474 477 _e( 'The selected plugin has been <strong>deleted</strong>.' ); 475 478 } else {
Note: See TracChangeset
for help on using the changeset viewer.