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
This commit is contained in:
Sergey Biryukov 2015-11-06 16:37:27 +00:00
parent 5f16d19be7
commit 2583c1e4ec
2 changed files with 3 additions and 3 deletions

View File

@ -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' );
}

View File

@ -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.