From de685a9f738daadf47e5098c3b46af1cbfccb304 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 30 May 2014 18:09:43 +0000 Subject: [PATCH] Move `default` to the bottom in `_wp_mysql_week()`. See #28409. git-svn-id: https://develop.svn.wordpress.org/trunk@28634 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 9a4bf4ec95..87ba0ae515 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -4006,9 +4006,6 @@ function send_nosniff_header() { */ function _wp_mysql_week( $column ) { switch ( $start_of_week = (int) get_option( 'start_of_week' ) ) { - default : - case 0 : - return "WEEK( $column, 0 )"; case 1 : return "WEEK( $column, 1 )"; case 2 : @@ -4017,6 +4014,9 @@ function _wp_mysql_week( $column ) { case 5 : case 6 : return "WEEK( DATE_SUB( $column, INTERVAL $start_of_week DAY ), 0 )"; + case 0 : + default : + return "WEEK( $column, 0 )"; } }