Canonical URI for page on front. Props skeltoac. #2515
git-svn-id: http://svn.automattic.com/wordpress/trunk@3853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d56f944642
commit
949f22d2d2
|
@ -105,6 +105,9 @@ function get_page_link($id = false) {
|
||||||
$link = get_settings('home') . "/?page_id=$id";
|
$link = get_settings('home') . "/?page_id=$id";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') )
|
||||||
|
$link = get_settings('home');
|
||||||
|
|
||||||
return apply_filters('page_link', $link, $id);
|
return apply_filters('page_link', $link, $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue