Make WordPress Core

Changeset 9244


Ignore:
Timestamp:
10/18/2008 08:58:19 PM (16 years ago)
Author:
ryan
Message:

Don't schedule update events while installing. Props rdworth and tott. fixes #7724

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/update.php

    r8929 r9244  
    274274add_action( 'wp_update_themes', 'wp_update_themes' );
    275275
    276 if ( !wp_next_scheduled('wp_update_plugins') )
     276if ( !wp_next_scheduled('wp_update_plugins') && !defined('WP_INSTALLING') )
    277277    wp_schedule_event(time(), 'twicedaily', 'wp_update_plugins');
    278278
    279279
    280 if ( !wp_next_scheduled('wp_update_themes') )
     280if ( !wp_next_scheduled('wp_update_themes') && !defined('WP_INSTALLING') )
    281281    wp_schedule_event(time(), 'twicedaily', 'wp_update_themes');
    282282
Note: See TracChangeset for help on using the changeset viewer.