From e7c35109d6aed2ebc9ae2466ccb82d6395412fa5 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 2 Mar 2010 19:00:21 +0000 Subject: [PATCH] Add the_feed_link(). fixes #11794, props sirzooro. git-svn-id: https://develop.svn.wordpress.org/trunk@13557 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 abc09c6661..3f2e4ea459 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. *