WordPress.org

Make WordPress Core

Ticket #11794: link-template.php.diff

File link-template.php.diff, 647 bytes (added by sirzooro, 8 years ago)
  • link-template.php

    old new  
    389389}
    390390
    391391/**
     392 * Display the permalink for the feed type.
     393 *
     394 * @since 3.0
     395 *
     396 * @param string $description Link description.
     397 * @param string $feed Optional, defaults to default feed. Feed type.
     398 */
     399function the_feed_link( $description, $feed = '' ) {
     400        $link = '<a href="' . esc_attr( get_feed_link( $feed ) ) . '">' . $description . '</a>';
     401        $link = apply_filters( 'the_feed_link', $link, $feed );
     402        echo $link;
     403}
     404
     405/**
    392406 * Retrieve the permalink for the post comments feed.
    393407 *
    394408 * @since 2.2.0