Make WordPress Core

Ticket #31503: 31503.2.diff

File 31503.2.diff, 607 bytes (added by TobiasBg, 10 years ago)

Updated patch

  • src/wp-includes/update.php

    diff --git src/wp-includes/update.php src/wp-includes/update.php
    index b19b27c..a1a95e8 100644
    function wp_schedule_update_checks() { 
    654654 * @since 4.1.0
    655655 */
    656656function wp_clean_update_cache() {
     657        // In case `wp_clean_plugins_cache()` does not exist, clear the transient directly.
    657658        if ( function_exists( 'wp_clean_plugins_cache' ) ) {
    658659                wp_clean_plugins_cache();
    659660        } else {
    660661                delete_site_transient( 'update_plugins' );
    661662        }
    662         wp_clean_plugins_cache();
    663663        wp_clean_themes_cache();
    664664        delete_site_transient( 'update_core' );
    665665}