Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#26069 closed defect (bug) (fixed)

'plugin_delete_result' transient deleted instead of "plugins_delete_result_$user_ID" in /wp-admin/plugins.php

Reported by: jdgrimes's profile jdgrimes Owned by: dd32's profile dd32
Milestone: 3.8 Priority: normal
Severity: minor Version: 2.8
Component: Plugins Keywords: has-patch
Focuses: Cc:

Description

The results of plugin deletion are stored in the "plugins_delete_result_$user_ID" transient. This transient is checked on /wp-admin/plugins.php after plugins are deleted in case there were any errors. It attempts to delete the transient after retrieving it from the DB, but it does not properly append the user ID to it:

$delete_result = get_transient( 'plugins_delete_result_' . $user_ID );
		
delete_transient( 'plugins_delete_result' ); // Delete it once we're done.

Introduced in [11371].

Attachments (1)

26069.diff (704 bytes) - added by jdgrimes 11 years ago.

Download all attachments as: .zip

Change History (3)

@jdgrimes
11 years ago

#1 @SergeyBiryukov
11 years ago

  • Component changed from General to Plugins
  • Milestone changed from Awaiting Review to 3.8

#2 @dd32
11 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 26263:

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

Note: See TracTickets for help on using tickets.