Don't pass deprecated argument to get_bloginfo() in get_index_rel_link() also observer user trailing slash preferences. Fixes #11607 props nacin and miqrogroove.

git-svn-id: https://develop.svn.wordpress.org/trunk@12588 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-12-30 17:08:23 +00:00
parent c38846defd
commit 6c90d0770c
1 changed files with 1 additions and 1 deletions

View File

@ -1161,7 +1161,7 @@ function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_
* @return string
*/
function get_index_rel_link() {
$link = "<link rel='index' title='" . esc_attr(get_bloginfo('name')) . "' href='" . get_bloginfo('siteurl') . "' />\n";
$link = "<link rel='index' title='" . esc_attr( get_bloginfo( 'name', 'display' ) ) . "' href='" . esc_url( user_trailingslashit( get_bloginfo( 'url', 'display' ) ) ) . "' />\n";
return apply_filters( "index_rel_link", $link );
}