Changeset 31708
- Timestamp:
- 03/10/2015 11:19:02 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r31701 r31708 359 359 add_action( 'init', 'create_initial_taxonomies', 0 ); // highest priority 360 360 361 // Update362 if ( ( is_main_site() || is_network_admin() ) && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {363 add_action( 'admin_init', '_maybe_update_core' );364 add_action( 'wp_version_check', 'wp_version_check' );365 add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 );366 367 add_action( 'load-plugins.php', 'wp_update_plugins' );368 add_action( 'load-update.php', 'wp_update_plugins' );369 add_action( 'load-update-core.php', 'wp_update_plugins' );370 add_action( 'admin_init', '_maybe_update_plugins' );371 add_action( 'wp_update_plugins', 'wp_update_plugins' );372 add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );373 374 add_action( 'load-themes.php', 'wp_update_themes' );375 add_action( 'load-update.php', 'wp_update_themes' );376 add_action( 'load-update-core.php', 'wp_update_themes' );377 add_action( 'admin_init', '_maybe_update_themes' );378 add_action( 'wp_update_themes', 'wp_update_themes' );379 add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );380 381 add_action( 'update_option_WPLANG', 'wp_clean_update_cache', 10, 0 );382 add_action( 'wp_maybe_auto_update', 'wp_maybe_auto_update' );383 add_action( 'init', 'wp_schedule_update_checks' );384 }385 386 361 // Canonical 387 362 add_action( 'template_redirect', 'redirect_canonical' ); -
trunk/src/wp-includes/update.php
r31701 r31708 664 664 delete_site_transient( 'update_core' ); 665 665 } 666 667 if ( ( ! is_main_site() && ! is_network_admin() ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { 668 return; 669 } 670 671 add_action( 'admin_init', '_maybe_update_core' ); 672 add_action( 'wp_version_check', 'wp_version_check' ); 673 add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 ); 674 675 add_action( 'load-plugins.php', 'wp_update_plugins' ); 676 add_action( 'load-update.php', 'wp_update_plugins' ); 677 add_action( 'load-update-core.php', 'wp_update_plugins' ); 678 add_action( 'admin_init', '_maybe_update_plugins' ); 679 add_action( 'wp_update_plugins', 'wp_update_plugins' ); 680 add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 ); 681 682 add_action( 'load-themes.php', 'wp_update_themes' ); 683 add_action( 'load-update.php', 'wp_update_themes' ); 684 add_action( 'load-update-core.php', 'wp_update_themes' ); 685 add_action( 'admin_init', '_maybe_update_themes' ); 686 add_action( 'wp_update_themes', 'wp_update_themes' ); 687 add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 ); 688 689 add_action( 'update_option_WPLANG', 'wp_clean_update_cache' , 10, 0 ); 690 691 add_action( 'wp_maybe_auto_update', 'wp_maybe_auto_update' ); 692 693 add_action( 'init', 'wp_schedule_update_checks' );
Note: See TracChangeset
for help on using the changeset viewer.