From a0e3c8a8ac498d9882d29f572010f6f3ff700520 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Fri, 2 Jan 2004 19:38:16 +0000 Subject: [PATCH] Fix for post_id git-svn-id: http://svn.automattic.com/wordpress/trunk@687 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/template-functions.php b/wp-includes/template-functions.php index 6d8bb46f60..cb196a68a7 100644 --- a/wp-includes/template-functions.php +++ b/wp-includes/template-functions.php @@ -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);