[wp-cvs] wordpress/wp-includes classes.php,1.13,1.14
Ryan Boren
rboren at users.sourceforge.net
Mon Sep 6 03:03:11 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27373
Modified Files:
classes.php
Log Message:
Add missing join to page by day query.
Index: classes.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/classes.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** classes.php 5 Sep 2004 20:06:01 -0000 1.13
--- classes.php 6 Sep 2004 03:03:08 -0000 1.14
***************
*** 491,495 ****
$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');
$number_of_days = $q['posts_per_page'];
$page_number = -1;
--- 491,495 ----
$limits = 'LIMIT '.$pgstrt.$q['posts_per_page'];
} elseif ($q['what_to_show'] == 'days') {
! $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;
More information about the cvs
mailing list