[wp-trac] [WordPress Trac] #26065: update_plugins transient not properly updated when multiple plugins are deleted
WordPress Trac
noreply at wordpress.org
Sat Nov 16 14:24:12 UTC 2013
#26065: update_plugins transient not properly updated when multiple plugins are
deleted
--------------------------+-----------------------------
Reporter: jdgrimes | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 2.8
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
In `delete_plugins()`, the `update_plugins` transient is updated, but only
the last plugin deleted is removed. Abridged code:
{{{
foreach ( $plugins as $plugin_file ) {
/* ... */
}
if ( $current = get_site_transient('update_plugins') ) {
unset( $current->response[ $plugin_file ] );
set_site_transient('update_plugins', $current);
}
}}}
The `unset()` should be performed for each deleted plugin. Patch
forthcoming.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26065>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list