From 5f264096d85d2a4e39f7ddb4980e15c6c53359db Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 7 Jun 2006 23:30:09 +0000 Subject: [PATCH] Canonical URI for page on front. Props skeltoac. #2515 git-svn-id: https://develop.svn.wordpress.org/trunk@3853 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-links.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index 8646c41b80..8915840f2b 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -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); }