what an idiot, I had broken ?m=

git-svn-id: http://svn.automattic.com/wordpress/trunk@941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
michelvaldrighi 2004-02-26 16:08:12 +00:00
parent f080abc376
commit b69088dea3

View File

@ -121,7 +121,7 @@ $wp_posts_post_date_field = "DATE_ADD(post_date, INTERVAL '$add_hours:$add_minut
// if a month is specified in the querystring, load that month // if a month is specified in the querystring, load that month
if ($m != '') { if ($m != '') {
$m = ''.intval($m); $m = ''.intval($m);
$where .= " AND YEAR($wp_posts_post_date_fieldpost_date)=".substr($m,0,4); $where .= " AND YEAR($wp_posts_post_date_field)=".substr($m,0,4);
if (strlen($m)>5) if (strlen($m)>5)
$where .= " AND MONTH($wp_posts_post_date_field)=".substr($m,4,2); $where .= " AND MONTH($wp_posts_post_date_field)=".substr($m,4,2);
if (strlen($m)>7) if (strlen($m)>7)