Canonical URI for page on front. Props skeltoac. #2515
git-svn-id: https://develop.svn.wordpress.org/trunk@3853 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d672e3fc7f
commit
5f264096d8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user