From c62cd97555abf66194fc1660474f611e424714d3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 19 Jul 2014 02:43:27 +0000 Subject: [PATCH] Add a class for get_comment_author_link() in Recent Comments widget. props DrewAPicture, dannydehaan, 5um17. fixes #27944. git-svn-id: https://develop.svn.wordpress.org/trunk@29241 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/default-widgets.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/default-widgets.php b/src/wp-includes/default-widgets.php index 96fd1bebb3..08315f09ff 100644 --- a/src/wp-includes/default-widgets.php +++ b/src/wp-includes/default-widgets.php @@ -871,7 +871,13 @@ class WP_Widget_Recent_Comments extends WP_Widget { _prime_post_caches( $post_ids, strpos( get_option( 'permalink_structure' ), '%category%' ), false ); foreach ( (array) $comments as $comment) { - $output .= '
  • ' . /* translators: comments widget: 1: comment author, 2: post link */ sprintf(_x('%1$s on %2$s', 'widgets'), get_comment_author_link(), '' . get_the_title($comment->comment_post_ID) . '') . '
  • '; + $output .= '
  • '; + /* translators: comments widget: 1: comment author, 2: post link */ + $output .= sprintf( _x( '%1$s on %2$s', 'widgets' ), + '' . get_comment_author_link() . '', + '' . get_the_title( $comment->comment_post_ID ) . '' + ); + $output .= '
  • '; } } $output .= '';