Changeset 34828 for trunk/src/wp-includes/update.php
- Timestamp:
- 10/05/2015 03:05:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/update.php
r32635 r34828 23 23 */ 24 24 function wp_version_check( $extra_stats = array(), $force_check = false ) { 25 if ( defined( 'WP_INSTALLING') ) {25 if ( wp_installing() ) { 26 26 return; 27 27 } … … 188 188 */ 189 189 function wp_update_plugins( $extra_stats = array() ) { 190 if ( defined( 'WP_INSTALLING') ) {190 if ( wp_installing() ) { 191 191 return; 192 192 } … … 345 345 */ 346 346 function wp_update_themes( $extra_stats = array() ) { 347 if ( defined( 'WP_INSTALLING') ) {347 if ( wp_installing() ) { 348 348 return; 349 349 } … … 637 637 */ 638 638 function wp_schedule_update_checks() { 639 if ( ! wp_next_scheduled('wp_version_check') && !defined('WP_INSTALLING') )639 if ( ! wp_next_scheduled( 'wp_version_check' ) && ! wp_installing() ) 640 640 wp_schedule_event(time(), 'twicedaily', 'wp_version_check'); 641 641 642 if ( ! wp_next_scheduled('wp_update_plugins') && !defined('WP_INSTALLING') )642 if ( ! wp_next_scheduled( 'wp_update_plugins' ) && ! wp_installing() ) 643 643 wp_schedule_event(time(), 'twicedaily', 'wp_update_plugins'); 644 644 645 if ( ! wp_next_scheduled('wp_update_themes') && !defined('WP_INSTALLING') )645 if ( ! wp_next_scheduled( 'wp_update_themes' ) && ! wp_installing() ) 646 646 wp_schedule_event(time(), 'twicedaily', 'wp_update_themes'); 647 647 648 if ( ! wp_next_scheduled( 'wp_maybe_auto_update' ) && ! defined( 'WP_INSTALLING') ) {648 if ( ! wp_next_scheduled( 'wp_maybe_auto_update' ) && ! wp_installing() ) { 649 649 // Schedule auto updates for 7 a.m. and 7 p.m. in the timezone of the site. 650 650 $next = strtotime( 'today 7am' );
Note: See TracChangeset
for help on using the changeset viewer.