]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/admin.php
WordPress 4.4
[autoinstalls/wordpress.git] / wp-admin / admin.php
index d3e58d254997f592038b57f53e7f9633a9000872..184d5c27319f2c2cf625c2d21a14d401f2a5e30a 100644 (file)
@@ -84,7 +84,7 @@ require_once(ABSPATH . 'wp-admin/includes/admin.php');
 auth_redirect();
 
 // Schedule trash collection
 auth_redirect();
 
 // Schedule trash collection
-if ( !wp_next_scheduled('wp_scheduled_delete') && !defined('WP_INSTALLING') )
+if ( ! wp_next_scheduled( 'wp_scheduled_delete' ) && ! wp_installing() )
        wp_schedule_event(time(), 'daily', 'wp_scheduled_delete');
 
 set_screen_options();
        wp_schedule_event(time(), 'daily', 'wp_scheduled_delete');
 
 set_screen_options();