From 2f6e0142f8bd00588c05de48b00f59bf398d0c67 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 2 Jan 2004 19:38:16 +0000 Subject: [PATCH] Fix for post_id git-svn-id: https://develop.svn.wordpress.org/trunk@687 602fd350-edb4-49c9-b593-d223f7449a82 --- 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);