From 1c5322e065b6c3f8402865dd0dc7424b46e70fb5 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 24 Nov 2003 08:24:00 +0000 Subject: [PATCH] Fixed bug: http://wordpress.org/support/6/933 git-svn-id: http://svn.automattic.com/wordpress/trunk@557 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2template.functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index cf39ee903..b84413ba6 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -437,7 +437,7 @@ function get_permalink($id=false) { ); return $siteurl . str_replace($rewritecode, $rewritereplace, get_settings('permalink_structure')); } else { - return $siteurl . '/' . $blogfilename.$querystring_start.'p'.$querystring_equal.$idpost->ID; + return $siteurl . '/' . $blogfilename.$querystring_start.'p'.$querystring_equal.$id; } } }