Plugin Deletion: Remove the correct transient after demoving plugins. Props jdgrimes. Fixes #26069

git-svn-id: https://develop.svn.wordpress.org/trunk@26263 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2013-11-19 04:16:50 +00:00
parent 520840e84c
commit 199870b417
1 changed files with 3 additions and 2 deletions

View File

@ -386,7 +386,8 @@ if ( !empty($invalid) )
</div>
<?php elseif ( isset($_GET['deleted']) ) :
$delete_result = get_transient( 'plugins_delete_result_' . $user_ID );
delete_transient('plugins_delete_result'); //Delete it once we're done.
// Delete it once we're done.
delete_transient( 'plugins_delete_result_' . $user_ID );
if ( is_wp_error($delete_result) ) : ?>
<div id="message" class="updated"><p><?php printf( __('Plugin could not be deleted due to an error: %s'), $delete_result->get_error_message() ); ?></p></div>