Make WordPress Core


Ignore:
Timestamp:
10/24/2017 11:00:01 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Transients: After [41963], add missing cron task for delete_expired_transients().

Props dlh.
Fixes #41699.

File:
1 edited

Legend:

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

    r39941 r42008  
    8888    wp_schedule_event(time(), 'daily', 'wp_scheduled_delete');
    8989
     90// Schedule Transient cleanup.
     91if ( ! wp_next_scheduled( 'delete_expired_transients' ) && ! wp_installing() ) {
     92    wp_schedule_event( time(), 'daily', 'delete_expired_transients' );
     93}
     94
    9095set_screen_options();
    9196
     
    9499
    95100wp_enqueue_script( 'common' );
    96 
    97 
    98 
    99101
    100102/**
Note: See TracChangeset for help on using the changeset viewer.