WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/06/2013 01:32:09 AM (6 years ago)
Author:
dd32
Message:

Upgrader: Make clearing the Plugin and Theme update caches optional during install and upgrade proceedures. See #22704

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r25235 r25272  
    111111 *
    112112 * @since 3.5.0
    113  */
    114 function wp_clean_themes_cache() {
    115     delete_site_transient('update_themes');
     113 * @param bool $clear_update_cache Whether to clear the Theme updates cache
     114 */
     115function wp_clean_themes_cache( $clear_update_cache = true ) {
     116    if ( $clear_update_cache )
     117        delete_site_transient( 'update_themes' );
    116118    search_theme_directories( true );
    117119    foreach ( wp_get_themes( array( 'errors' => null ) ) as $theme )
Note: See TracChangeset for help on using the changeset viewer.