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
This commit is contained in:
Scott Taylor 2014-05-30 18:09:43 +00:00
parent 2cd825a21b
commit de685a9f73

View File

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