From 3b5707c4be56652b4bf2614b35202e43f1fc1a75 Mon Sep 17 00:00:00 2001 From: scribu Date: Thu, 2 Dec 2010 16:27:16 +0000 Subject: [PATCH] Add note about wp_next_scheduled() in wp_schedule_event(). See #14668 git-svn-id: http://svn.automattic.com/wordpress/trunk@16690 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/cron.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/cron.php b/wp-includes/cron.php index 7258cb0ce..c8261d8da 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -50,6 +50,8 @@ function wp_schedule_single_event( $timestamp, $hook, $args = array()) { * Valid values for the recurrence are hourly, daily and twicedaily. These can * be extended using the cron_schedules filter in wp_get_schedules(). * + * Use wp_next_scheduled() to prevent duplicates + * * @since 2.1.0 * * @param int $timestamp Timestamp for when to run the event. @@ -402,4 +404,4 @@ function _upgrade_cron_array($cron) { $new_cron['version'] = 2; update_option( 'cron', $new_cron ); return $new_cron; -} \ No newline at end of file +}