From d046644a4c6f96ca2e004b534dd20bd341dcf7ad Mon Sep 17 00:00:00 2001 From: saxmatt Date: Thu, 30 Dec 2004 11:08:42 +0000 Subject: [PATCH] Typo typo git-svn-id: http://svn.automattic.com/wordpress/trunk@2010 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/classes.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index db829769fd..4a095d75eb 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -62,11 +62,12 @@ class WP_Query { $this->query = $query; $this->query_vars = $qv; $qv['m'] = (int) $qv['m']; + $qv['p'] = (int) $qv['p']; if ('' != $qv['name']) { $this->is_single = true; - } elseif ( intval( $q['p'] ) != 0 && $qv['p'] != 'all' ) { - $this->is_single = true; + } elseif ( $qv['p'] && $qv['p'] != 'all' ) { + $this->is_single = true; } elseif (('' != $qv['hour']) && ('' != $qv['minute']) &&('' != $qv['second']) && ('' != $qv['year']) && ('' != $qv['monthnum']) && ('' != $qv['day'])) { // If year, month, day, hour, minute, and second are set, a single // post is being queried. @@ -77,7 +78,7 @@ class WP_Query { } elseif (!empty($qv['s'])) { $this->is_search = true; } else { - // Look for archive queries. Dates, categories, authors. + die('heree5'); // Look for archive queries. Dates, categories, authors. if ( (int) $qv['second']) { $this->is_time = true;