Summary
Currently, WordPress uses RSS 2.0 as the default format for its syndication feeds
In case anyone wants a different default format, he must hack Wordpress core (or tell users to use /feed/type rather than /feed, but he still needs to change any page / template that links to the feeds).
This patch allows users to choose default RSS type in the admin interface, in the Options / Reading page.
Version
This patch has been created from the current 2.3 SVN code (trunk).
Modified files
- wp-includes/feed.php: Adds a wp_dropdown_feeds() method, that lists available feed types within <option> items to be used in a <select> list
- wp-admin/options-reading.php: Displays the <select> list in the RSS options form to let user choose default type. Chosen type is saved as 'rss_format' in the wp_options table
- wp-includes/functions.php: Use get_options('rss_format') rather than 'rss2' default for feed type