Fix for post_id

git-svn-id: https://develop.svn.wordpress.org/trunk@687 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-01-02 19:38:16 +00:00
parent b1923c0ccc
commit 2f6e0142f8
1 changed files with 2 additions and 0 deletions

View File

@ -522,6 +522,7 @@ function get_month_link($year, $month) {
if ('/' != substr($monthlink, -1)) $monthlink = substr($monthlink, 0, -1);
$monthlink = str_replace('%year%', $year, $monthlink);
$monthlink = str_replace('%monthnum%', intval($month), $monthlink);
$monhtlink = str_replace('%post_id%', '', $monthlink);
return $siteurl . $monthlink;
} else {
return $siteurl.'/'.$blogfilename.$querystring_start.'m'.$querystring_equal.$year.zeroise($month, 2);
@ -541,6 +542,7 @@ function get_day_link($year, $month, $day) {
$daylink = str_replace('%year%', $year, $daylink);
$daylink = str_replace('%monthnum%', intval($month), $daylink);
$daylink = str_replace('%day%', intval($day), $daylink);
$daylink = str_replace('%post_id%', '', $daylink);
return $siteurl . $daylink;
} else {
return $siteurl.'/'.$blogfilename.$querystring_start.'m'.$querystring_equal.$year.zeroise($month, 2).zeroise($day, 2);