From 4b81c51c9baff6390916c034fd917c73fdc86815 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 22 Oct 2004 21:44:00 +0000 Subject: [PATCH] PATH_INFO page links now include the index. Bug 404. git-svn-id: https://develop.svn.wordpress.org/trunk@1828 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 2522bc0554..bc85f13ab6 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -94,6 +94,9 @@ function get_page_link($id = false) { if ('' != $permalink) { $link = get_page_uri($id); + if (using_index_permalinks()) { + $link = 'index.php/' . $link; + } $link = get_settings('home') . "/$link/"; } else { $link = get_settings('home') . "/index.php?page_id=$id";