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
This commit is contained in:
Sergey Biryukov 2020-01-13 17:05:07 +00:00
parent f18b173674
commit 4a9c0e35e1
2 changed files with 2 additions and 2 deletions

View File

@ -825,7 +825,7 @@ function wp_get_schedules() {
'display' => __( 'Once Daily' ), 'display' => __( 'Once Daily' ),
), ),
'weekly' => array( 'weekly' => array(
'interval' => 7 * DAY_IN_SECONDS, 'interval' => WEEK_IN_SECONDS,
'display' => __( 'Once Weekly' ), 'display' => __( 'Once Weekly' ),
), ),
); );

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.