Make WordPress Core

Ticket #27944: 27944.2.patch

File 27944.2.patch, 1.2 KB (added by DrewAPicture, 12 years ago)

.comment-author-link

  • src/wp-includes/default-widgets.php

     
    871871                        _prime_post_caches( $post_ids, strpos( get_option( 'permalink_structure' ), '%category%' ), false );
    872872
    873873                        foreach ( (array) $comments as $comment) {
    874                                 $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>';
     874                                $output .= '<li class="recentcomments">';
     875                                /* translators: comments widget: 1: comment author, 2: post link */
     876                                $output .= sprintf( _x( '%1$s on %2$s', 'widgets' ),
     877                                        '<span class="comment-author-link">' . get_comment_author_link() . '</span>',
     878                                        '<a href="' . esc_url( get_comment_link( $comment->comment_ID ) ) . '">' . get_the_title( $comment->comment_post_ID ) . '</a>'
     879                                );
     880                                $output .= '</li>';
    875881                        }
    876882                }
    877883                $output .= '</ul>';