Invalidate the plugin update cache if plugins are deleted. Fixes #7304 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@8359 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
491b47b300
commit
5b2a4bb837
|
@ -120,6 +120,12 @@ function wp_update_plugins() {
|
|||
$plugin_changed = true;
|
||||
}
|
||||
|
||||
foreach ( (array) $current->response as $plugin_file => $update_details ) {
|
||||
if ( ! isset($plugins[ $plugin_file ]) ) {
|
||||
$plugin_changed = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Bail if we've checked in the last 12 hours and if nothing has changed
|
||||
if ( $time_not_changed && !$plugin_changed )
|
||||
return false;
|
||||
|
@ -159,4 +165,4 @@ if ( defined( 'WP_ADMIN' ) && WP_ADMIN )
|
|||
else
|
||||
add_action( 'init', 'wp_update_plugins' );
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue