From 2583c1e4ec68275926c27c57913ace6ee9e3ac36 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 6 Nov 2015 16:37:27 +0000 Subject: [PATCH] Replace `7 * DAY_IN_SECONDS` with `WEEK_IN_SECONDS` in `get_weekstartend()`. Props MikeHansenMe. Fixes #34603. Built from https://develop.svn.wordpress.org/trunk@35556 git-svn-id: http://core.svn.wordpress.org/trunk@35520 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index ca00b7c5bd..1b743d0bae 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -301,8 +301,8 @@ function get_weekstartend( $mysqlstring, $start_of_week = '' ) { // The most recent week start day on or before $day. $start = $day - DAY_IN_SECONDS * ( $weekday - $start_of_week ); - // $start + 7 days - 1 second. - $end = $start + 7 * DAY_IN_SECONDS - 1; + // $start + 1 week - 1 second. + $end = $start + WEEK_IN_SECONDS - 1; return compact( 'start', 'end' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 776ccd760e..51179107a9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta3-35555'; +$wp_version = '4.4-beta3-35556'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.