Fix missing '/' in permalinks when not using the rewritable permalink option
git-svn-id: http://svn.automattic.com/wordpress/trunk@541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
862558e2f2
commit
3d8f2e3340
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue