From 061b5d398b88736cf796398d5e12aa71b2f1f0f3 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 30 May 2014 18:10:15 +0000 Subject: [PATCH] Move `default` to the bottom in `_wp_mysql_week()`. See #28409. Built from https://develop.svn.wordpress.org/trunk@28634 git-svn-id: http://core.svn.wordpress.org/trunk@28453 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 9a4bf4ec95..87ba0ae515 100644 --- a/wp-includes/functions.php +++ b/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 )"; } }