mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Don't 404 for empty feeds.
fixes #18505. Built from https://develop.svn.wordpress.org/trunk@29216 git-svn-id: http://core.svn.wordpress.org/trunk@29000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
be718ee860
commit
47119960de
@ -582,7 +582,7 @@ class WP {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Don't 404 for these queries either.
|
// Don't 404 for these queries either.
|
||||||
if ( is_home() || is_search() ) {
|
if ( is_home() || is_search() || is_feed() ) {
|
||||||
status_header( 200 );
|
status_header( 200 );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user