Make WordPress Core

Changeset 20652


Ignore:
Timestamp:
04/30/2012 09:02:54 PM (12 years ago)
Author:
ryan
Message:

Fire the wp_cron action from init instead of sanitize_comment_cookies so that cron handlers can rely on a fully initialized env. Props SergeyBiryukov, norocketsurgeon. fixes #19818

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r20453 r20652  
    229229// WP Cron
    230230if ( !defined( 'DOING_CRON' ) )
    231     add_action( 'sanitize_comment_cookies', 'wp_cron' );
     231    add_action( 'init', 'wp_cron' );
    232232
    233233// 2 Actions 2 Furious
Note: See TracChangeset for help on using the changeset viewer.