Fix missing '/' in permalinks when not using the rewritable permalink option

git-svn-id: https://develop.svn.wordpress.org/trunk@541 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dougal Campbell 2003-11-11 20:49:00 +00:00
parent 7fad3048f3
commit f122f35020
1 changed files with 2 additions and 2 deletions

View File

@ -423,7 +423,7 @@ function get_permalink($id=false) {
);
return $siteurl . str_replace($rewritecode, $rewritereplace, get_settings('permalink_structure'));
} else { // if they're not using the fancy permalink option
return $siteurl . $blogfilename.$querystring_start.'p'.$querystring_equal.$post->ID;
return $siteurl . '/' . $blogfilename.$querystring_start.'p'.$querystring_equal.$post->ID;
}
} else { // if an ID is given
$idpost = $wpdb->get_row("SELECT post_date, post_name FROM $tableposts WHERE ID = $id");
@ -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.$idpost->ID;
}
}
}