Make WordPress Core

Changeset 25190


Ignore:
Timestamp:
08/30/2013 11:36:58 PM (11 years ago)
Author:
nacin
Message:

Be less verbose when erroring out in do_feed() for an invalid feed template. fixes #24874.

File:
1 edited

Legend:

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

    r25148 r25190  
    10061006
    10071007    $hook = 'do_feed_' . $feed;
    1008     if ( !has_action($hook) ) {
    1009         $message = sprintf( __( 'ERROR: %s is not a valid feed template.' ), esc_html($feed));
    1010         wp_die( $message, '', array( 'response' => 404 ) );
    1011     }
     1008    if ( ! has_action( $hook ) )
     1009        wp_die( __( 'ERROR: This is not a valid feed template.' ), '', array( 'response' => 404 ) );
    10121010
    10131011    do_action( $hook, $wp_query->is_comment_feed );
Note: See TracChangeset for help on using the changeset viewer.