From fdd0756e5a88f1966b4e51bbdf113b8e7268e226 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 19 Jul 2014 02:44:14 +0000 Subject: [PATCH] Add a class for get_comment_author_link() in Recent Comments widget. props DrewAPicture, dannydehaan, 5um17. fixes #27944. Built from https://develop.svn.wordpress.org/trunk@29241 git-svn-id: http://core.svn.wordpress.org/trunk@29025 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-widgets.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index 96fd1bebb3..08315f09ff 100644 --- a/wp-includes/default-widgets.php +++ b/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 .= '';