From 5d6f4b5ca5a39493db93cf147ef3430d76fc28c9 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 25 Sep 2006 01:51:37 +0000 Subject: [PATCH] Preserve is_feed setting when handling a 404. Props skeltoac. fixes #3019 git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4227 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/classes.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 292e1c8ca7..3cace16ac7 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -246,8 +246,12 @@ class WP_Query { } function set_404() { + $is_feed = $this->is_feed; + $this->init_query_flags(); - $this->is_404 = true; + $this->is_404 = true; + + $this->is_feed = $is_feed; } function get($query_var) {