From 6c8852bc51d62c0fe9ef0285321e41b74b9aed26 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 24 Nov 2003 08:24:00 +0000 Subject: [PATCH] Fixed bug: http://wordpress.org/support/6/933 git-svn-id: https://develop.svn.wordpress.org/trunk@557 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 cf39ee9037..b84413ba63 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; } } }