mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Preserve is_feed setting when handling a 404. Props skeltoac. fixes #3019
git-svn-id: http://svn.automattic.com/wordpress/trunk@4096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6ba1e4dd56
commit
1d0af8cbc2
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user