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

Built from https://develop.svn.wordpress.org/trunk@26263


git-svn-id: http://core.svn.wordpress.org/trunk@26169 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2013-11-19 04:17:09 +00:00
parent f29b2e02ac
commit 0fc053528f
1 changed files with 3 additions and 2 deletions

View File

@ -385,8 +385,9 @@ 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_result = get_transient( 'plugins_delete_result_' . $user_ID );
// 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>