WordPress.org

Make WordPress Core

Changeset 37570


Ignore:
Timestamp:
05/25/2016 07:35:07 PM (4 years ago)
Author:
ocean90
Message:

Upgrade: Allow update checks on upgrader_process_complete to be run during Ajax requests.

Fixes missing translation updates during shiny updates.

Fixes #36914.

Location:
trunk/src
Files:
2 edited

Legend:

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

    r37221 r37570  
    110110// Upgrade hooks.
    111111add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
     112add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 );
     113add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
     114add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );
  • trunk/src/wp-includes/update.php

    r37518 r37570  
    685685add_action( 'admin_init', '_maybe_update_core' );
    686686add_action( 'wp_version_check', 'wp_version_check' );
    687 add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 );
    688687
    689688add_action( 'load-plugins.php', 'wp_update_plugins' );
     
    692691add_action( 'admin_init', '_maybe_update_plugins' );
    693692add_action( 'wp_update_plugins', 'wp_update_plugins' );
    694 add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
    695693
    696694add_action( 'load-themes.php', 'wp_update_themes' );
     
    699697add_action( 'admin_init', '_maybe_update_themes' );
    700698add_action( 'wp_update_themes', 'wp_update_themes' );
    701 add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );
    702699
    703700add_action( 'update_option_WPLANG', 'wp_clean_update_cache' , 10, 0 );
Note: See TracChangeset for help on using the changeset viewer.