]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/admin.php
Wordpress 2.9
[autoinstalls/wordpress.git] / wp-admin / admin.php
index f8405f9a09406c3ba940eeddaa9b84425bd54e49..4d321576053dfdbe4b50fe670a89fec3dd774cce 100644 (file)
@@ -42,13 +42,17 @@ nocache_headers();
 
 update_category_cache();
 
+// Schedule trash collection
+if ( !wp_next_scheduled('wp_scheduled_delete') && !defined('WP_INSTALLING') )
+       wp_schedule_event(time(), 'daily', 'wp_scheduled_delete');
+
 set_screen_options();
 
 $posts_per_page = get_option('posts_per_page');
 $date_format = get_option('date_format');
 $time_format = get_option('time_format');
 
-wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'popuptitle', 'popupurl', 'text', 'trackback', 'pingback'));
+wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'text', 'trackback', 'pingback'));
 
 wp_admin_css_color('classic', __('Blue'), admin_url("css/colors-classic.css"), array('#073447', '#21759B', '#EAF3FA', '#BBD8E7'));
 wp_admin_css_color('fresh', __('Gray'), admin_url("css/colors-fresh.css"), array('#464646', '#6D6D6D', '#F1F1F1', '#DFDFDF'));