WordPress.org

Make WordPress Core

Changeset 28634


Ignore:
Timestamp:
05/30/2014 06:09:43 PM (6 years ago)
Author:
wonderboymusic
Message:

Move default to the bottom in _wp_mysql_week().

See #28409.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r28633 r28634  
    40074007function _wp_mysql_week( $column ) {
    40084008    switch ( $start_of_week = (int) get_option( 'start_of_week' ) ) {
    4009     default :
    4010     case 0 :
    4011         return "WEEK( $column, 0 )";
    40124009    case 1 :
    40134010        return "WEEK( $column, 1 )";
     
    40184015    case 6 :
    40194016        return "WEEK( DATE_SUB( $column, INTERVAL $start_of_week DAY ), 0 )";
     4017    case 0 :
     4018    default :
     4019        return "WEEK( $column, 0 )";
    40204020    }
    40214021}
Note: See TracChangeset for help on using the changeset viewer.