Twenty Nineteen: Avoid nested comment author links in `TwentyNineteen_Walker_Comment::html5_comment()`.
Props iamdmitrymayorov, mukesh27. Fixes #46291. Built from https://develop.svn.wordpress.org/trunk@44771 git-svn-id: http://core.svn.wordpress.org/trunk@44603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e37950c0dc
commit
f0a9df1aa2
|
@ -33,10 +33,9 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment {
|
|||
<footer class="comment-meta">
|
||||
<div class="comment-author vcard">
|
||||
<?php
|
||||
$comment_author_link = get_comment_author_link( $comment );
|
||||
$comment_author_url = get_comment_author_url( $comment );
|
||||
$comment_author = get_comment_author( $comment );
|
||||
$avatar = get_avatar( $comment, $args['avatar_size'] );
|
||||
$comment_author_url = get_comment_author_url( $comment );
|
||||
$comment_author = get_comment_author( $comment );
|
||||
$avatar = get_avatar( $comment, $args['avatar_size'] );
|
||||
if ( 0 != $args['avatar_size'] ) {
|
||||
if ( empty( $comment_author_url ) ) {
|
||||
echo $avatar;
|
||||
|
@ -71,7 +70,7 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment {
|
|||
),
|
||||
)
|
||||
),
|
||||
'<b class="fn">' . get_comment_author_link( $comment ) . '</b>'
|
||||
'<b class="fn">' . $comment_author . '</b>'
|
||||
);
|
||||
|
||||
if ( ! empty( $comment_author_url ) ) {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.2-alpha-44769';
|
||||
$wp_version = '5.2-alpha-44771';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue