Ticket #1107: datemodified.diff
File datemodified.diff, 1.0 KB (added by , 19 years ago) |
---|
-
wp-includes/template-functions-general.php
582 582 //echo ""+$post->post_date; 583 583 } 584 584 585 function the_date($d='', $before='', $after='', $echo = true ) {585 function the_date($d='', $before='', $after='', $echo = true, $date_type = '') { 586 586 global $id, $post, $day, $previousday, $newday; 587 587 $the_date = ''; 588 588 if ($day != $previousday) { 589 589 $the_date .= $before; 590 $which_date = ( 'modified' == $date_type ) ? $post->post_modified : $post->post_date; 590 591 if ($d=='') { 591 $the_date .= mysql2date(get_settings('date_format'), $ post->post_date);592 $the_date .= mysql2date(get_settings('date_format'), $which_date); 592 593 } else { 593 $the_date .= mysql2date($d, $ post->post_date);594 $the_date .= mysql2date($d, $which_date); 594 595 } 595 596 $the_date .= $after; 596 597 $previousday = $day;