X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/699231ae09f7057a4d0000cdf32e50a3df6a04ca..2394dc71e94f8323dc422e89f9841959de78d328:/wp-includes/feed.php diff --git a/wp-includes/feed.php b/wp-includes/feed.php index 1be12a45..34d8652b 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -63,7 +63,8 @@ function bloginfo_rss($show = '') { * @return string Default feed, or for example 'rss2', 'atom', etc. */ function get_default_feed() { - return apply_filters('default_feed', 'rss2'); + $default_feed = apply_filters('default_feed', 'rss2'); + return 'rss' == $default_feed ? 'rss2' : $default_feed; } /** @@ -161,7 +162,7 @@ function get_the_content_feed($feed_type = null) { * @param string $feed_type The type of feed. rss2 | atom | rss | rdf */ function the_content_feed($feed_type = null) { - echo get_the_content_feed(); + echo get_the_content_feed($feed_type); } /** @@ -204,7 +205,7 @@ function comments_link_feed() { * * @package WordPress * @subpackage Feed - * @since unknown + * @since 2.5.0 * * @param int|object $comment_id Optional comment object or id. Defaults to global comment object. */ @@ -217,7 +218,7 @@ function comment_guid($comment_id = null) { * * @package WordPress * @subpackage Feed - * @since unknown + * @since 2.5.0 * * @param int|object $comment_id Optional comment object or id. Defaults to global comment object. * @return bool|string false on failure or guid for comment on success.