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 )"; } }