From 184628f5dc2df174beef1c59285d851f8e1db839 Mon Sep 17 00:00:00 2001 From: rboren Date: Fri, 22 Oct 2004 21:44:00 +0000 Subject: [PATCH] PATH_INFO page links now include the index. Bug 404. git-svn-id: http://svn.automattic.com/wordpress/trunk@1828 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 2522bc055..bc85f13ab 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";