Make WordPress Core


Ignore:
Timestamp:
05/07/2010 05:01:29 AM (14 years ago)
Author:
nacin
Message:

Fix start of week and SQL WEEK handling. props mdawaffe, fixes #10397.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r14478 r14499  
    17811781
    17821782        if ( $q['w'] )
    1783             $where .= " AND WEEK($wpdb->posts.post_date, 1)='" . $q['w'] . "'";
     1783            $where .= ' AND ' . _wp_mysql_week( "`$wpdb->posts`.`post_date`" ) . " = '" . $q['w'] . "'";
    17841784
    17851785        if ( intval($q['comments_popup']) )
Note: See TracChangeset for help on using the changeset viewer.