Make WordPress Core

Ticket #27944: 27944.patch

File 27944.patch, 1.2 KB (added by dannydehaan, 11 years ago)

Wrapped get_comment_author_link in a span

  • wp-includes/default-widgets.php

    diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php
    index e48cc01fe2a86387aaf32cab83a9457f30557cd8..16c98fe9e22357cc667a998cf61440a03ff93bf1 100644
    a b class WP_Widget_Recent_Comments extends WP_Widget { 
    870870                        _prime_post_caches( $post_ids, strpos( get_option( 'permalink_structure' ), '%category%' ), false );
    871871
    872872                        foreach ( (array) $comments as $comment) {
    873                                 $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>';
     873                                $output .=  '<li class="recentcomments">' . /* translators: comments widget: 1: comment author, 2: post link */ sprintf(_x('%1$s on %2$s', 'widgets'), '<span class="comment-author">' . get_comment_author_link() . '</span>', '<a href="' . esc_url( get_comment_link($comment->comment_ID) ) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
    874874                        }
    875875                }
    876876                $output .= '</ul>';