WordPress.org

Make WordPress Core

Ticket #36914: 36914.patch

File 36914.patch, 1.5 KB (added by ocean90, 5 years ago)
  • src/wp-includes/update.php

     
    678678        delete_site_transient( 'update_core' );
    679679}
    680680
     681add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 );
     682add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
     683add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );
     684
    681685if ( ( ! is_main_site() && ! is_network_admin() ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
    682686        return;
    683687}
    684688
    685689add_action( 'admin_init', '_maybe_update_core' );
    686690add_action( 'wp_version_check', 'wp_version_check' );
    687 add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 );
    688691
    689692add_action( 'load-plugins.php', 'wp_update_plugins' );
    690693add_action( 'load-update.php', 'wp_update_plugins' );
    691694add_action( 'load-update-core.php', 'wp_update_plugins' );
    692695add_action( 'admin_init', '_maybe_update_plugins' );
    693696add_action( 'wp_update_plugins', 'wp_update_plugins' );
    694 add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
    695697
    696698add_action( 'load-themes.php', 'wp_update_themes' );
    697699add_action( 'load-update.php', 'wp_update_themes' );
    698700add_action( 'load-update-core.php', 'wp_update_themes' );
    699701add_action( 'admin_init', '_maybe_update_themes' );
    700702add_action( 'wp_update_themes', 'wp_update_themes' );
    701 add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );
    702703
    703704add_action( 'update_option_WPLANG', 'wp_clean_update_cache' , 10, 0 );
    704705