Make WordPress Core

Changeset 20329


Ignore:
Timestamp:
03/30/2012 02:46:52 PM (12 years ago)
Author:
nacin
Message:

Clear WP_Theme caches on update. fixes #20331.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r20268 r20329  
    413413        // Force refresh of plugin update information
    414414        delete_site_transient('update_plugins');
     415        wp_cache_delete( 'plugins', 'plugins' );
    415416
    416417        return true;
     
    457458        // Force refresh of plugin update information
    458459        delete_site_transient('update_plugins');
     460        wp_cache_delete( 'plugins', 'plugins' );
    459461    }
    460462
     
    538540        // Force refresh of plugin update information
    539541        delete_site_transient('update_plugins');
     542        wp_cache_delete( 'plugins', 'plugins' );
    540543
    541544        return $results;
     
    764767        // Force refresh of theme update information
    765768        delete_site_transient('update_themes');
     769        foreach ( wp_get_themes() as $theme )
     770            $theme->cache_delete();
    766771
    767772        return true;
     
    810815        // Force refresh of theme update information
    811816        delete_site_transient('update_themes');
     817        foreach ( wp_get_themes() as $theme )
     818            $theme->cache_delete();
    812819
    813820        return true;
     
    897904        // Force refresh of theme update information
    898905        delete_site_transient('update_themes');
     906        foreach ( wp_get_themes() as $theme )
     907            $theme->cache_delete();
    899908
    900909        return $results;
Note: See TracChangeset for help on using the changeset viewer.