From 997227c59ac6670c2fda674bb74f57978a8f4b46 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 11 Nov 2006 18:25:42 +0000 Subject: [PATCH] is_singular should be false for the posts page. Props mdawaffe. fixes #3351 git-svn-id: https://develop.svn.wordpress.org/trunk@4463 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/query.php b/wp-includes/query.php index c544dd3369..0b70ef47e3 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -695,6 +695,7 @@ class WP_Query { $reqpage = 0; if ( ('page' == get_option('show_on_front') ) && ( $reqpage == get_option('page_for_posts') ) ) { + $this->is_singular = false; $this->is_page = false; $this->is_home = true; $this->is_posts_page = true; @@ -734,6 +735,7 @@ class WP_Query { if (($q['page_id'] != '') && (intval($q['page_id']) != 0)) { $q['page_id'] = intval($q['page_id']); if ( ('page' == get_option('show_on_front') ) && ( $q['page_id'] == get_option('page_for_posts') ) ) { + $this->is_singular = false; $this->is_page = false; $this->is_home = true; $this->is_posts_page = true;