From 866d4203ed2a1bc73075f6e9a9e616d84693f1b9 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 13 Apr 2009 16:15:44 +0000 Subject: [PATCH] robots.txt is not home. Props johnbillion. fixes #9482 git-svn-id: https://develop.svn.wordpress.org/trunk@10920 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 96013ad42c..333a760075 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -1453,7 +1453,7 @@ class WP_Query { if ( $this->is_feed && ( !empty($qv['withcomments']) || ( empty($qv['withoutcomments']) && $this->is_singular ) ) ) $this->is_comment_feed = true; - if ( !( $this->is_singular || $this->is_archive || $this->is_search || $this->is_feed || $this->is_trackback || $this->is_404 || $this->is_admin || $this->is_comments_popup ) ) + if ( !( $this->is_singular || $this->is_archive || $this->is_search || $this->is_feed || $this->is_trackback || $this->is_404 || $this->is_admin || $this->is_comments_popup || $this->is_robots ) ) $this->is_home = true; // Correct is_* for page_on_front and page_for_posts