Ticket #26869: do_feed.diff
File do_feed.diff, 918 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/functions.php
1079 1079 if ( $feed == '' || $feed == 'feed' ) 1080 1080 $feed = get_default_feed(); 1081 1081 1082 $hook = 'do_feed_' . $feed; 1083 if ( ! has_action( $hook ) ) 1082 if ( ! has_action( "do_feed_{$feed}" ) ) 1084 1083 wp_die( __( 'ERROR: This is not a valid feed template.' ), '', array( 'response' => 404 ) ); 1085 1084 1086 1085 /** 1087 1086 * Fires once the given feed is loaded. 1088 1087 * 1089 * The dynamic hook name, $hook, refers to the feed name.1088 * The dynamic portion of the hook name, $feed, refers to the feed name. 1090 1089 * 1091 1090 * @since 2.1.0 1092 1091 * 1093 1092 * @param bool $is_comment_feed Whether the feed is a comment feed. 1094 1093 */ 1095 do_action( $hook, $wp_query->is_comment_feed );1094 do_action( "do_feed_{$feed}", $wp_query->is_comment_feed ); 1096 1095 } 1097 1096 1098 1097 /**