Changeset 2543 for trunk/wp-includes/comment-functions.php
- Timestamp:
- 04/19/2005 12:23:55 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-functions.php
r2531 r2543 289 289 } 290 290 291 function get_comment_time( $d = '' ) { 292 global $comment; 291 function get_comment_time( $d = '', $gmt = false ) { 292 global $comment; 293 $comment_date = $gmt? $comment->comment_date_gmt : $comment->comment_date; 293 294 if ( '' == $d ) 294 $date = mysql2date(get_settings('time_format'), $comment ->comment_date);295 else 296 $date = mysql2date($d, $comment ->comment_date);295 $date = mysql2date(get_settings('time_format'), $comment_date); 296 else 297 $date = mysql2date($d, $comment_date); 297 298 return apply_filters('get_comment_time', $date); 298 299 }
Note: See TracChangeset
for help on using the changeset viewer.