WordPress.org

Make WordPress Core

Ticket #11607: 11607.diff

File 11607.diff, 607 bytes (added by nacin, 8 years ago)

Also hardens things a bit with esc_url.

  • link-template.php

     
    11581158 * @return string
    11591159 */
    11601160function get_index_rel_link() {
    1161         $link = "<link rel='index' title='" . esc_attr(get_bloginfo('name')) . "' href='" . get_bloginfo('siteurl') . "' />\n";
     1161        $link = "<link rel='index' title='" . esc_attr( get_bloginfo( 'name', 'display' ) ) . "' href='" . esc_url( trailingslashit( get_bloginfo( 'url', 'display' ) ) ) . "' />\n";
    11621162        return apply_filters( "index_rel_link", $link );
    11631163}
    11641164