From 5ee2e239dcfcdebfb122aad06d058c8bac4a113f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 13 Jan 2020 17:03:39 +0000 Subject: [PATCH] Cron API: Use `WEEK_IN_SECONDS` constant for the `weekly` schedule added in [47062]. Props afercia. See #47606. git-svn-id: https://develop.svn.wordpress.org/trunk@47068 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/cron.php b/src/wp-includes/cron.php index 9f179df510..0c35f6cd0c 100644 --- a/src/wp-includes/cron.php +++ b/src/wp-includes/cron.php @@ -825,7 +825,7 @@ function wp_get_schedules() { 'display' => __( 'Once Daily' ), ), 'weekly' => array( - 'interval' => 7 * DAY_IN_SECONDS, + 'interval' => WEEK_IN_SECONDS, 'display' => __( 'Once Weekly' ), ), );