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

View File

@ -385,8 +385,9 @@ if ( !empty($invalid) )
?> ?>
</div> </div>
<?php elseif ( isset($_GET['deleted']) ) : <?php elseif ( isset($_GET['deleted']) ) :
$delete_result = get_transient('plugins_delete_result_'.$user_ID); $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) ) : ?> 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> <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>