mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Removed unused var.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fa29d02a4b
commit
8aa385cf3f
@ -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)");
|
||||
|
Loading…
Reference in New Issue
Block a user