mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
the_modified_date(). Props westi. fixes #2374
git-svn-id: http://svn.automattic.com/wordpress/trunk@4134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
efcb63ad21
commit
cdc1c73f61
@ -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 = '' ) {
|
function the_time( $d = '' ) {
|
||||||
echo apply_filters('the_time', get_the_time( $d ), $d);
|
echo apply_filters('the_time', get_the_time( $d ), $d);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user