Ticket #30210: 30210.2.patch
File 30210.2.patch, 526 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/functions.php
1204 1204 function do_feed() { 1205 1205 global $wp_query; 1206 1206 1207 if ( ! $wp_query->have_posts() && ! ( $wp_query->tax_query instanceof WP_Tax_Query ) ) { 1208 wp_die( __( 'ERROR: This is not a valid feed.' ), '', array( 'response' => 404 ) ); 1209 } 1210 1207 1211 $feed = get_query_var( 'feed' ); 1208 1212 1209 1213 // Remove the pad, if present.