wp/wp-includes/class-wp-query.php
changeset 13 d255fe9cd479
parent 9 177826044cd9
child 16 a86126ab1dd4
equal deleted inserted replaced
12:d8a8807227e4 13:d255fe9cd479
   536 			'subpost',
   536 			'subpost',
   537 			'subpost_id',
   537 			'subpost_id',
   538 			'attachment',
   538 			'attachment',
   539 			'attachment_id',
   539 			'attachment_id',
   540 			'name',
   540 			'name',
   541 			'static',
       
   542 			'pagename',
   541 			'pagename',
   543 			'page_id',
   542 			'page_id',
   544 			'second',
   543 			'second',
   545 			'minute',
   544 			'minute',
   546 			'hour',
   545 			'hour',
   800 			$this->is_single = true;
   799 			$this->is_single = true;
   801 		} elseif ( ( '' !== $qv['hour'] ) && ( '' !== $qv['minute'] ) && ( '' !== $qv['second'] ) && ( '' != $qv['year'] ) && ( '' != $qv['monthnum'] ) && ( '' != $qv['day'] ) ) {
   800 		} elseif ( ( '' !== $qv['hour'] ) && ( '' !== $qv['minute'] ) && ( '' !== $qv['second'] ) && ( '' != $qv['year'] ) && ( '' != $qv['monthnum'] ) && ( '' != $qv['day'] ) ) {
   802 			// If year, month, day, hour, minute, and second are set, a single
   801 			// If year, month, day, hour, minute, and second are set, a single
   803 			// post is being queried.
   802 			// post is being queried.
   804 			$this->is_single = true;
   803 			$this->is_single = true;
   805 		} elseif ( '' != $qv['static'] || '' != $qv['pagename'] || ! empty( $qv['page_id'] ) ) {
   804 		} elseif ( '' != $qv['pagename'] || ! empty( $qv['page_id'] ) ) {
   806 			$this->is_page   = true;
   805 			$this->is_page   = true;
   807 			$this->is_single = false;
   806 			$this->is_single = false;
   808 		} else {
   807 		} else {
   809 			// Look for archive queries. Dates, categories, authors, search, post type archives.
   808 			// Look for archive queries. Dates, categories, authors, search, post type archives.
   810 
   809