Return a 404 error if the request feed type doesn't exist not a 500. Fixes #12341 props aaroncampbell.

git-svn-id: http://svn.automattic.com/wordpress/trunk@13408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-02-25 21:16:07 +00:00
parent 5de87dcff1
commit 7ab6035d59
1 changed files with 1 additions and 1 deletions

View File

@ -1706,7 +1706,7 @@ function do_feed() {
$hook = 'do_feed_' . $feed;
if ( !has_action($hook) ) {
$message = sprintf( __( 'ERROR: %s is not a valid feed template.' ), esc_html($feed));
wp_die($message);
wp_die( $message, '', array( 'response' => 404 ) );
}
do_action( $hook, $wp_query->is_comment_feed );