Don't use HTML tags in translation strings for "In Reply To" links for comments in the admin.

Props ramiy.
Fixes #31857.


git-svn-id: https://develop.svn.wordpress.org/trunk@34297 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-09-18 18:35:16 +00:00
parent 13889763af
commit 310dc18167
2 changed files with 10 additions and 2 deletions

View File

@ -182,7 +182,11 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved
$parent = get_comment( $comment->comment_parent );
$parent_link = esc_url( get_comment_link( $parent ) );
$name = get_comment_author( $parent );
printf( ' | ' . __( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name );
printf(
/* translators: comment link */
' | ' . __( 'In reply to %s.' ),
'<a href="' . $parent_link . '">' . $name . '</a>'
);
}
?>
</td>

View File

@ -610,7 +610,11 @@ class WP_Comments_List_Table extends WP_List_Table {
if ( $parent ) {
$parent_link = esc_url( get_comment_link( $parent ) );
$name = get_comment_author( $parent );
printf( ' | '.__( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name );
printf(
/* translators: comment link */
' | ' . __( 'In reply to %s.' ),
'<a href="' . $parent_link . '">' . $name . '</a>'
);
}
}