Add the_feed_link(). fixes #11794, props sirzooro.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9c8ad3b226
commit
04e0052f4e
|
@ -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 = '<a href="' . esc_url( get_feed_link( $feed ) ) . '">' . $anchor . '</a>';
|
||||
echo apply_filters( 'the_feed_link', $link, $feed );
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the permalink for the feed type.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue