265
265
$locales = array_values( get_available_languages() );
268
* Filter the locales requested for plugin translations.
268
* Filters the locales requested for plugin translations.
271
271
* @since 4.5.0 The default value of the `$locales` parameter changed to include all locales.
439
439
$locales = array_values( get_available_languages() );
442
* Filter the locales requested for theme translations.
442
* Filters the locales requested for theme translations.
445
445
* @since 4.5.0 The default value of the `$locales` parameter changed to include all locales.
580
580
$update_data = array( 'counts' => $counts, 'title' => $update_title );
582
* Filter the returned array of update data for plugins, themes, and WordPress core.
582
* Filters the returned array of update data for plugins, themes, and WordPress core.
685
685
add_action( 'admin_init', '_maybe_update_core' );
686
686
add_action( 'wp_version_check', 'wp_version_check' );
687
add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 );
689
688
add_action( 'load-plugins.php', 'wp_update_plugins' );
690
689
add_action( 'load-update.php', 'wp_update_plugins' );
691
690
add_action( 'load-update-core.php', 'wp_update_plugins' );
692
691
add_action( 'admin_init', '_maybe_update_plugins' );
693
692
add_action( 'wp_update_plugins', 'wp_update_plugins' );
694
add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
696
694
add_action( 'load-themes.php', 'wp_update_themes' );
697
695
add_action( 'load-update.php', 'wp_update_themes' );
698
696
add_action( 'load-update-core.php', 'wp_update_themes' );
699
697
add_action( 'admin_init', '_maybe_update_themes' );
700
698
add_action( 'wp_update_themes', 'wp_update_themes' );
701
add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );
703
700
add_action( 'update_option_WPLANG', 'wp_clean_update_cache' , 10, 0 );