Add missing join to page by day query.

git-svn-id: https://develop.svn.wordpress.org/trunk@1613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-09-06 03:03:08 +00:00
parent 0aa8ff6a3d
commit 3d451b067e

View File

@ -490,7 +490,7 @@ class WP_Query {
$pgstrt = (intval($page) -1) * $q['posts_per_page'] . ', ';
$limits = 'LIMIT '.$pgstrt.$q['posts_per_page'];
} elseif ($q['what_to_show'] == 'days') {
$post_dates = $wpdb->get_col('SELECT post_date FROM ' . $wpdb->posts . ' WHERE (1=1) ' . $where . ' ORDER BY post_date DESC');
$post_dates = $wpdb->get_col('SELECT post_date FROM ' . $wpdb->posts . "$join WHERE (1=1) " . $where . ' ORDER BY post_date DESC');
$number_of_days = $q['posts_per_page'];
$page_number = -1;
$day_number = $number_of_days;