WordPress.org

Make WordPress Core

Ticket #44360: 44360.class-wp-widget-recent-comments.php.diff

File 44360.class-wp-widget-recent-comments.php.diff, 834 bytes (added by Dency, 15 months ago)

Patch for class-wp-widget-recent-comments.php File

  • wp-includes/widgets/class-wp-widget-recent-comments.php

     
    118118
    119119                        foreach ( (array) $comments as $comment ) {
    120120                                $output .= '<li class="recentcomments">';
    121                                 /* translators: comments widget: 1: comment author, 2: post link */
    122121                                $output .= sprintf(
     122                                    /* translators: comments widget: 1: comment author, 2: post link */
    123123                                        _x( '%1$s on %2$s', 'widgets' ),
    124124                                        '<span class="comment-author-link">' . get_comment_author_link( $comment ) . '</span>',
    125125                                        '<a href="' . esc_url( get_comment_link( $comment ) ) . '">' . get_the_title( $comment->comment_post_ID ) . '</a>'