WordPress.org

Make WordPress Core

Changeset 13408


Ignore:
Timestamp:
02/25/10 21:16:07 (4 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r13382 r13408  
    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 
Note: See TracChangeset for help on using the changeset viewer.