From 69e33afad3d93817ff3a1eb7219ab58c7c22e716 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 6 Feb 2008 18:11:49 +0000 Subject: [PATCH] Page permalink fixes from josephscott. fixes #5781 git-svn-id: https://develop.svn.wordpress.org/trunk@6737 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/link-template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index ac62342aa4..4b91b7fdef 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -139,6 +139,8 @@ function _get_page_link( $id = false ) { if ( !$id ) $id = (int) $post->ID; + else + $post = &get_post($id); $pagestruct = $wp_rewrite->get_page_permastruct();