? node_feed-ignores-using-array_diff_key.patch
? node_feed-ignores.patch
Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.1138
diff -u -p -r1.1138 node.module
--- modules/node/node.module	3 Oct 2009 19:16:03 -0000	1.1138
+++ modules/node/node.module	4 Oct 2009 03:03:12 -0000
@@ -1,4 +1,4 @@
-<?php
+Ω<?php
 // $Id: node.module,v 1.1138 2009/10/03 19:16:03 dries Exp $
 
 /**
@@ -1894,11 +1894,12 @@ function node_feed($nids = FALSE, $chann
     'description' => variable_get('feed_description', ''),
     'language'    => $language->language
   );
+  $channel_extras = array_diff_key($channel, $channel_defaults);
   $channel = array_merge($channel_defaults, $channel);
 
   $output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
   $output .= "<rss version=\"" . $channel["version"] . "\" xml:base=\"" . $base_url . "\" " . drupal_attributes($namespaces) . ">\n";
-  $output .= format_rss_channel($channel['title'], $channel['link'], $channel['description'], $items, $channel['language']);
+  $output .= format_rss_channel($channel['title'], $channel['link'], $channel['description'], $items, $channel['language'], $channel_extras);
   $output .= "</rss>\n";
 
   drupal_add_http_header('Content-Type', 'application/rss+xml; charset=utf-8');
