mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
robots.txt is not home. Props johnbillion. fixes #9482
git-svn-id: http://svn.automattic.com/wordpress/trunk@10920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
31a2bbad76
commit
c15b0ba08b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user