WordPress.org

Make WordPress Core

Ticket #23692: general-template.patch

File general-template.patch, 1.4 KB (added by joostdevalk, 5 years ago)

Patch

  • wp-includes/general-template.php

     
    21012101
    21022102        $args = wp_parse_args( $args, $defaults );
    21032103
    2104         echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( sprintf( $args['feedtitle'], get_bloginfo('name'), $args['separator'] ) ) . '" href="' . esc_url( get_feed_link() ) . "\" />\n";
    2105         echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( sprintf( $args['comstitle'], get_bloginfo('name'), $args['separator'] ) ) . '" href="' . esc_url( get_feed_link( 'comments_' . get_default_feed() ) ) . "\" />\n";
     2104        if ( apply_filters( 'automatic_feed_links_show_posts_feed', true ) ) {
     2105                echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( sprintf( $args['feedtitle'], get_bloginfo('name'), $args['separator'] ) ) . '" href="' . esc_url( get_feed_link() ) . "\" />\n";
     2106        }
     2107        if ( apply_filters( 'automatic_feed_links_show_comments_feed', true ) ) {
     2108                echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( sprintf( $args['comstitle'], get_bloginfo( 'name' ), $args['separator'] ) ) . '" href="' . esc_url( get_feed_link( 'comments_' . get_default_feed() ) ) . "\" />\n";
     2109        }
    21062110}
    21072111
    21082112/**