From 04e0052f4eae5941391db601d63b872b41467acd Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 2 Mar 2010 19:00:21 +0000 Subject: [PATCH] Add the_feed_link(). fixes #11794, props sirzooro. git-svn-id: http://svn.automattic.com/wordpress/trunk@13557 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index abc09c666..3f2e4ea45 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -397,6 +397,19 @@ function get_day_link($year, $month, $day) { } } +/** + * Display the permalink for the feed type. + * + * @since 3.0.0 + * + * @param string $anchor The link's anchor text. + * @param string $feed Optional, defaults to default feed. Feed type. + */ +function the_feed_link( $anchor, $feed = '' ) { + $link = '' . $anchor . ''; + echo apply_filters( 'the_feed_link', $link, $feed ); +} + /** * Retrieve the permalink for the feed type. *