WordPress.org

Make WordPress Core

Ticket #12341: 12341.001.diff

File 12341.001.diff, 632 bytes (added by aaroncampbell, 8 years ago)
  • wp-includes/functions.php

     
    17061706        $hook = 'do_feed_' . $feed; 
    17071707        if ( !has_action($hook) ) { 
    17081708                $message = sprintf( __( 'ERROR: %s is not a valid feed template.' ), esc_html($feed)); 
    1709                 wp_die($message); 
     1709                wp_die( $message, '', array( 'response' => 404 ) ); 
    17101710        } 
    17111711 
    17121712        do_action( $hook, $wp_query->is_comment_feed ); 
     
    40414041function _search_terms_tidy($t) { 
    40424042        return trim($t, "\"'\n\r "); 
    40434043} 
    4044 ?> 
    4045  No newline at end of file 
     4044?>