From eda9ffad881269a2f061a49d1c5f5b0ddadcb762 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 6 Apr 2006 00:44:35 +0000 Subject: [PATCH] Removed unused var. git-svn-id: https://develop.svn.wordpress.org/trunk@3696 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-links.php | 1 - 1 file changed, 1 deletion(-) diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index 9d025a1d6e..22a2e0777a 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -475,7 +475,6 @@ function _max_num_pages() { $numposts = $wpdb->get_var("SELECT COUNT(DISTINCT ID) FROM $fromwhere"); $max_num_pages = ceil($numposts / get_option('posts_per_page')); } else { - $posts = $wp_query->posts; preg_match('#FROM\s(.*)\sORDER BY#siU', $wp_query->request, $matches); $fromwhere = preg_replace('/( AND )?post_date >= (\'|\")(.*?)(\'|\")( AND post_date <= (\'\")(.*?)(\'\"))?/siU', '', $matches[1]); $num_days = $wpdb->query("SELECT DISTINCT post_date FROM $fromwhere GROUP BY year(post_date), month(post_date), dayofmonth(post_date)");