Fix for post_id

git-svn-id: http://svn.automattic.com/wordpress/trunk@687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-01-02 19:38:16 +00:00
parent 384edd177b
commit a0e3c8a8ac
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);