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: http://svn.automattic.com/wordpress/trunk@12588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9105b46360
commit
eccd0eb4be
|
@ -1161,7 +1161,7 @@ function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function get_index_rel_link() {
|
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 );
|
return apply_filters( "index_rel_link", $link );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue