mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
5f16d19be7
commit
2583c1e4ec
@ -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' );
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user