mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
Fix start of week and SQL WEEK handling. props mdawaffe, fixes #10397.
git-svn-id: https://develop.svn.wordpress.org/trunk@14499 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1780,7 +1780,7 @@ class WP_Query {
|
||||
}
|
||||
|
||||
if ( $q['w'] )
|
||||
$where .= " AND WEEK($wpdb->posts.post_date, 1)='" . $q['w'] . "'";
|
||||
$where .= ' AND ' . _wp_mysql_week( "`$wpdb->posts`.`post_date`" ) . " = '" . $q['w'] . "'";
|
||||
|
||||
if ( intval($q['comments_popup']) )
|
||||
$q['p'] = absint($q['comments_popup']);
|
||||
|
||||
Reference in New Issue
Block a user