~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-includes/update.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        }
56
56
 
57
57
        /**
58
 
         * Filter the locale requested for WordPress core translations.
 
58
         * Filters the locale requested for WordPress core translations.
59
59
         *
60
60
         * @since 2.8.0
61
61
         *
265
265
        $locales = array_values( get_available_languages() );
266
266
 
267
267
        /**
268
 
         * Filter the locales requested for plugin translations.
 
268
         * Filters the locales requested for plugin translations.
269
269
         *
270
270
         * @since 3.7.0
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() );
440
440
 
441
441
        /**
442
 
         * Filter the locales requested for theme translations.
 
442
         * Filters the locales requested for theme translations.
443
443
         *
444
444
         * @since 3.7.0
445
445
         * @since 4.5.0 The default value of the `$locales` parameter changed to include all locales.
579
579
 
580
580
        $update_data = array( 'counts' => $counts, 'title' => $update_title );
581
581
        /**
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.
583
583
         *
584
584
         * @since 3.5.0
585
585
         *
684
684
 
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 );
688
687
 
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 );
695
693
 
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 );
702
699
 
703
700
add_action( 'update_option_WPLANG', 'wp_clean_update_cache' , 10, 0 );
704
701