Ticket #15400: 15400.diff
| File 15400.diff, 843 bytes (added by , 14 years ago) |
|---|
-
wp-includes/default-widgets.php
675 675 676 676 $output .= '<ul id="recentcomments">'; 677 677 if ( $comments ) { 678 // prime cache for associated posts 679 $post_ids = array_unique( wp_list_pluck( $comments, 'comment_post_ID' ) ); 680 _prime_post_caches( $post_ids, false, false ); 681 678 682 foreach ( (array) $comments as $comment) { 679 683 $output .= '<li class="recentcomments">' . /* translators: comments widget: 1: comment author, 2: post link */ sprintf(_x('%1$s on %2$s', 'widgets'), get_comment_author_link(), '<a href="' . esc_url( get_comment_link($comment->comment_ID) ) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>'; 680 684 }