Changeset 3030
- Timestamp:
- 11/10/2005 11:31:30 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-general.php
r3009 r3030 633 633 634 634 635 function the_modified_time($d = '') { 636 echo apply_filters('the_modified_time', get_the_modified_time($d), $d); 637 } 638 639 640 function get_the_modified_time($d = '') { 641 if ( '' == $d ) 642 $the_time = get_post_modified_time(get_settings('time_format')); 643 else 644 $the_time = get_post_modified_time($d); 645 return apply_filters('get_the_modified_time', $the_time, $d); 646 } 647 648 649 function get_post_modified_time( $d = 'U', $gmt = false ) { // returns timestamp 650 global $post; 651 652 if ( $gmt ) 653 $time = $post->post_modified_gmt; 654 else 655 $time = $post->post_modified; 656 $time = mysql2date($d, $time); 657 658 return apply_filters('get_the_modified_time', $time, $d, $gmt); 659 } 660 661 635 662 function the_weekday() { 636 663 global $weekday, $id, $post;
Note: See TracChangeset
for help on using the changeset viewer.