Make WordPress Core

Ticket #27944: default-widgets.php.patch

File default-widgets.php.patch, 1.1 KB (added by 5um17, 11 years ago)

Wrapping author name in cite tag

  • wp-includes/default-widgets.php

     
    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'), '<cite class="author-name">' . get_comment_author_link() . '</cite>', '<a href="' . esc_url( get_comment_link($comment->comment_ID) ) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
    874874                        }
    875875                }
    876876                $output .= '</ul>';