From 064452985773940aa8f56ff9bef09f754c3b62a8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 30 Aug 2006 16:46:08 +0000 Subject: [PATCH] the_modified_date(). Props westi. fixes #2374 git-svn-id: https://develop.svn.wordpress.org/trunk@4134 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/general-template.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index bb425dcbbf..73592b17a0 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -612,6 +612,20 @@ function the_date($d='', $before='', $after='', $echo = true) { } +function the_modified_date($d = '') { + echo apply_filters('the_modified_date', get_the_modified_date($d), $d); +} + + +function get_the_modified_date($d = '') { + if ( '' == $d ) + $the_time = get_post_modified_time(get_settings('date_format')); + else + $the_time = get_post_modified_time($d); + return apply_filters('get_the_modified_date', $the_time, $d); +} + + function the_time( $d = '' ) { echo apply_filters('the_time', get_the_time( $d ), $d); }