From 4a9c0e35e1b777abbfbc953c2979a3c6a15a03a7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 13 Jan 2020 17:05:07 +0000 Subject: [PATCH] Cron API: Use `WEEK_IN_SECONDS` constant for the `weekly` schedule added in [47062]. Props afercia. See #47606. Built from https://develop.svn.wordpress.org/trunk@47068 git-svn-id: http://core.svn.wordpress.org/trunk@46868 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/cron.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/cron.php b/wp-includes/cron.php index 9f179df510..0c35f6cd0c 100644 --- a/wp-includes/cron.php +++ b/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' ), ), ); diff --git a/wp-includes/version.php b/wp-includes/version.php index a00cbef0f1..4be0ff40ef 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47067'; +$wp_version = '5.4-alpha-47068'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.