From b3d45e868e3d3d198fafdd536c572c59d445f611 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 15 Sep 2008 23:48:24 +0000 Subject: [PATCH] Support %date in next post link template. Props noel. fixes #7726 git-svn-id: https://develop.svn.wordpress.org/trunk@8896 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/link-template.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 1dfcb66e8d..d01b96814c 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -650,8 +650,11 @@ function adjacent_post_link($format, $link, $in_same_cat = false, $excluded_cate $title = $previous ? __('Previous Post') : __('Next Post'); $title = apply_filters('the_title', $title, $post); + $date = mysql2date(get_option('date_format'), $post->post_date); + $string = ''; $link = str_replace('%title', $title, $link); + $link = str_replace('%date', $date, $link); $link = $string . $link . ''; $format = str_replace('%link', $link, $format);