From 8e11facb671932a6eefe0e7e4f3d63d39eef55b3 Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Wed, 29 Apr 2020 15:26:56 +0000 Subject: [PATCH] Query: Ensure that only a single post can be returned on date/time based queries. Props: sstoqnov, peterwilsoncc. git-svn-id: https://develop.svn.wordpress.org/trunk@47635 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-query.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wp-includes/class-wp-query.php b/src/wp-includes/class-wp-query.php index b72c9c35aa..50da8ed7d2 100644 --- a/src/wp-includes/class-wp-query.php +++ b/src/wp-includes/class-wp-query.php @@ -811,10 +811,6 @@ class WP_Query { $this->is_single = true; } elseif ( $qv['p'] ) { $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. - $this->is_single = true; } elseif ( '' != $qv['pagename'] || ! empty( $qv['page_id'] ) ) { $this->is_page = true; $this->is_single = false;