WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/23/2013 02:07:51 AM (8 years ago)
Author:
nacin
Message:

Add a language pack upgrader class.

At the conclusion of any upgrade, after the transients are refreshed from the API, pending translations are downloaded and installed to wp-content/languages.

props dd32.
see #18200.

File:
1 edited

Legend:

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

    r25544 r25566  
    159159    // Check for update on a different schedule, depending on the page.
    160160    switch ( current_filter() ) {
     161        case 'upgrader_process_complete' :
     162            $timeout = 0;
     163            break;
    161164        case 'load-update-core.php' :
    162165            $timeout = MINUTE_IN_SECONDS;
     
    284287    // Check for update on a different schedule, depending on the page.
    285288    switch ( current_filter() ) {
     289        case 'upgrader_process_complete' :
     290            $timeout = 0;
     291            break;
    286292        case 'load-update-core.php' :
    287293            $timeout = MINUTE_IN_SECONDS;
     
    486492add_action( 'admin_init', '_maybe_update_core' );
    487493add_action( 'wp_version_check', 'wp_version_check' );
     494add_action( 'upgrader_process_complete', 'wp_version_check' );
    488495
    489496add_action( 'load-plugins.php', 'wp_update_plugins' );
     
    492499add_action( 'admin_init', '_maybe_update_plugins' );
    493500add_action( 'wp_update_plugins', 'wp_update_plugins' );
     501add_action( 'upgrader_process_complete', 'wp_update_plugins' );
    494502
    495503add_action( 'load-themes.php', 'wp_update_themes' );
     
    498506add_action( 'admin_init', '_maybe_update_themes' );
    499507add_action( 'wp_update_themes', 'wp_update_themes' );
     508add_action( 'upgrader_process_complete', 'wp_update_themes' );
    500509
    501510// Automatic Updates - Cron callback
Note: See TracChangeset for help on using the changeset viewer.