WordPress.org

Make WordPress Core

Changeset 12120


Ignore:
Timestamp:
10/27/09 18:13:42 (4 years ago)
Author:
ryan
Message:

Schedule trash collection from admin page loads. see #4529

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r12029 r12120  
    4242 
    4343update_category_cache(); 
     44 
     45// Schedule trash collection 
     46if ( !wp_next_scheduled('wp_scheduled_delete') && !defined('WP_INSTALLING') ) 
     47    wp_schedule_event(time(), 'daily', 'wp_scheduled_delete'); 
    4448 
    4549set_screen_options(); 
  • trunk/wp-includes/cron.php

    r11741 r12120  
    394394    return true; 
    395395} 
    396  
    397 add_action( 'wp_scheduled_delete', 'wp_scheduled_delete' ); 
    398 if ( !wp_next_scheduled('wp_scheduled_delete') && !defined('WP_INSTALLING') ) 
    399     wp_schedule_event(time(), 'daily', 'wp_scheduled_delete'); 
  • trunk/wp-includes/default-filters.php

    r12041 r12120  
    204204add_action( 'transition_post_status',     '_transition_post_status',  5, 3 ); 
    205205add_action( 'comment_form', 'wp_comment_form_unfiltered_html_nonce'        ); 
     206add_action( 'wp_scheduled_delete',        'wp_scheduled_delete' ); 
    206207 
    207208// Post Image CSS class filtering 
Note: See TracChangeset for help on using the changeset viewer.