WordPress.org

Make WordPress Core

Changeset 8360


Ignore:
Timestamp:
07/16/08 21:56:43 (6 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-includes/update.php

    r8317 r8360  
    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.