WordPress.org

Make WordPress Core

Ticket #5446: 5446.patch

File 5446.patch, 513 bytes (added by pishmishy, 10 years ago)

New patch, translatable and escaped text

  • wp-includes/functions.php

     
    863863
    864864        $hook = 'do_feed_' . $feed;
    865865        do_action( $hook, $wp_query->is_comment_feed );
     866        if(has_action($hook)) {
     867                do_action( $hook, $wp_query->is_comment_feed );
     868        } else {
     869                $message = sprintf( __( 'ERROR: %s is not a valid feed template' ), wp_specialchars($feed));
     870                wp_die($message);
     871        }
    866872}
    867873
    868874