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:
ryan 2006-06-07 23:30:09 +00:00
parent d56f944642
commit 949f22d2d2
1 changed files with 3 additions and 0 deletions

View File

@ -105,6 +105,9 @@ function get_page_link($id = false) {
$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);
}