Changeset 25823 for trunk/src/wp-includes/update.php
- Timestamp:
- 10/17/2013 12:54:15 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/update.php
r25810 r25823 407 407 408 408 /** 409 * Cron entry which runs the WordPress Automatic Updates409 * Performs WordPress automatic background updates. 410 410 * 411 411 * @since 3.7.0 412 412 */ 413 function wp_ auto_updates_maybe_update() {413 function wp_maybe_auto_update() { 414 414 include_once ABSPATH . '/wp-admin/includes/admin.php'; 415 415 include_once ABSPATH . '/wp-admin/includes/class-wp-upgrader.php'; 416 416 417 if ( WP_Automatic_Upgrader::upgrader_disabled() ) 417 $upgrader = new WP_Automatic_Upgrader; 418 if ( $upgrader->is_disabled() ) 418 419 return; 419 420 420 WP_Automatic_Upgrader::perform_auto_updates();421 $upgrader->run(); 421 422 } 422 423 … … 566 567 wp_schedule_event(time(), 'twicedaily', 'wp_update_themes'); 567 568 568 if ( !wp_next_scheduled( 'wp_auto_updates_maybe_update' ) && ! defined( 'WP_INSTALLING' ) ) 569 wp_schedule_event( time(), 'twicedaily', 'wp_auto_updates_maybe_update' ); 570 569 if ( !wp_next_scheduled( 'wp_maybe_auto_update' ) && ! defined( 'WP_INSTALLING' ) ) 570 wp_schedule_event( time(), 'twicedaily', 'wp_maybe_auto_update' ); 571 571 } 572 572 … … 592 592 add_action( 'upgrader_process_complete', 'wp_update_themes' ); 593 593 594 // Automatic Updates - Cron callback 595 add_action( 'wp_auto_updates_maybe_update', 'wp_auto_updates_maybe_update' ); 594 add_action( 'wp_maybe_auto_update', 'wp_maybe_auto_update' ); 596 595 597 596 add_action('init', 'wp_schedule_update_checks');
Note: See TracChangeset
for help on using the changeset viewer.