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
This commit is contained in:
parent
49abdc66f3
commit
07a4fa5c0b
@ -489,8 +489,12 @@ class WP_Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function set_404() {
|
function set_404() {
|
||||||
|
$is_feed = $this->is_feed;
|
||||||
|
|
||||||
$this->init_query_flags();
|
$this->init_query_flags();
|
||||||
$this->is_404 = true;
|
$this->is_404 = true;
|
||||||
|
|
||||||
|
$this->is_feed = $is_feed;
|
||||||
}
|
}
|
||||||
|
|
||||||
function get($query_var) {
|
function get($query_var) {
|
||||||
|
Loading…
Reference in New Issue
Block a user