Typo typo

git-svn-id: http://svn.automattic.com/wordpress/trunk@2010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-12-30 11:08:42 +00:00
parent 232e019cc6
commit d046644a4c
1 changed files with 4 additions and 3 deletions

View File

@ -62,11 +62,12 @@ class WP_Query {
$this->query = $query; $this->query = $query;
$this->query_vars = $qv; $this->query_vars = $qv;
$qv['m'] = (int) $qv['m']; $qv['m'] = (int) $qv['m'];
$qv['p'] = (int) $qv['p'];
if ('' != $qv['name']) { if ('' != $qv['name']) {
$this->is_single = true; $this->is_single = true;
} elseif ( intval( $q['p'] ) != 0 && $qv['p'] != 'all' ) { } elseif ( $qv['p'] && $qv['p'] != 'all' ) {
$this->is_single = true; $this->is_single = true;
} elseif (('' != $qv['hour']) && ('' != $qv['minute']) &&('' != $qv['second']) && ('' != $qv['year']) && ('' != $qv['monthnum']) && ('' != $qv['day'])) { } 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 // If year, month, day, hour, minute, and second are set, a single
// post is being queried. // post is being queried.
@ -77,7 +78,7 @@ class WP_Query {
} elseif (!empty($qv['s'])) { } elseif (!empty($qv['s'])) {
$this->is_search = true; $this->is_search = true;
} else { } else {
// Look for archive queries. Dates, categories, authors. die('heree5'); // Look for archive queries. Dates, categories, authors.
if ( (int) $qv['second']) { if ( (int) $qv['second']) {
$this->is_time = true; $this->is_time = true;