Make WordPress Core

Changeset 8359


Ignore:
Timestamp:
07/16/2008 09:53:32 PM (16 years ago)
Author:
westi
Message:

Invalidate the plugin update cache if plugins are deleted. Fixes #7304 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/update.php

    r8317 r8359  
    121121    }
    122122
     123    foreach ( (array) $current->response as $plugin_file => $update_details ) {
     124        if ( ! isset($plugins[ $plugin_file ]) ) {
     125            $plugin_changed = true;
     126        }
     127    }
     128
    123129    // Bail if we've checked in the last 12 hours and if nothing has changed
    124130    if ( $time_not_changed && !$plugin_changed )
Note: See TracChangeset for help on using the changeset viewer.