Changeset 2543
- Timestamp:
- 04/19/2005 12:23:55 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-commentsrss2.php
r2519 r2543 31 31 if (is_single() || is_page()) { 32 32 $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email, 33 comment_author_url, comment_date, comment_ content, comment_post_ID,33 comment_author_url, comment_date, comment_date_gmt, comment_content, comment_post_ID, 34 34 $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments 35 35 LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE comment_post_ID = '$id' … … 39 39 } else { // if no post id passed in, we'll just ue the last 10 comments. 40 40 $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email, 41 comment_author_url, comment_date, comment_ content, comment_post_ID,41 comment_author_url, comment_date, comment_date_gmt, comment_content, comment_post_ID, 42 42 $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments 43 43 LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE ($wpdb->posts.post_status = 'publish' OR $wpdb->posts.post_status = 'static') … … 52 52 <title>by: <?php comment_author_rss() ?></title> 53 53 <link><?php comment_link() ?></link> 54 <pubDate><?php comment_time('r'); ?></pubDate>54 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_comment_time('Y-m-d H:i:s', true), false); ?></pubDate> 55 55 <guid><?php comment_link() ?></guid> 56 56 <?php -
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.