Make WordPress Core

Changeset 21064


Ignore:
Timestamp:
06/12/2012 03:59:53 PM (12 years ago)
Author:
ryan
Message:

Force a theme directory scan after installing and upgrading themes. Props nacin. fixes #20919

File:
1 edited

Legend:

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

    r21062 r21064  
    765765        // Force refresh of theme update information
    766766        delete_site_transient('update_themes');
     767        search_theme_directories( true );
    767768        foreach ( wp_get_themes() as $theme )
    768769            $theme->cache_delete();
     
    813814        // Force refresh of theme update information
    814815        delete_site_transient('update_themes');
     816        search_theme_directories( true );
    815817        foreach ( wp_get_themes() as $theme )
    816818            $theme->cache_delete();
     
    902904        // Force refresh of theme update information
    903905        delete_site_transient('update_themes');
     906        search_theme_directories( true );
    904907        foreach ( wp_get_themes() as $theme )
    905908            $theme->cache_delete();
Note: See TracChangeset for help on using the changeset viewer.