mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
Support timestamp permalinks. Make wider use of is_single(). Bug 0000194.
git-svn-id: https://develop.svn.wordpress.org/trunk@1491 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -65,6 +65,12 @@ class WP_Query_State {
|
||||
$this->date = true;
|
||||
}
|
||||
|
||||
// If year, month, day, hour, minute, and second are set, a single
|
||||
// post is being queried.
|
||||
if (('' != $hour) && ('' != $minute) &&('' != $second) && ('' != $year) && ('' != $monthnum) && ('' != $day)) {
|
||||
$this->single = true;
|
||||
}
|
||||
|
||||
if (!empty($s)) {
|
||||
$this->search = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user