diff --git a/wp-includes/functions.php b/wp-includes/functions.php index fa75e7946..ee1c297dd 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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 );