From 07a4fa5c0bc7d60a4355fa707393d23afcce9bbb Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 15 Aug 2006 05:03:14 +0000 Subject: [PATCH] Preserve is_feed setting when handling a 404. Props skeltoac. fixes #3019 git-svn-id: https://develop.svn.wordpress.org/trunk@4096 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/query.php b/wp-includes/query.php index a197d04a85..40dc830f26 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -489,8 +489,12 @@ class WP_Query { } function set_404() { + $is_feed = $this->is_feed; + $this->init_query_flags(); $this->is_404 = true; + + $this->is_feed = $is_feed; } function get($query_var) {