Update themes
This commit is contained in:
parent
e00f87f2f5
commit
168d1a5ee7
98 changed files with 6532 additions and 2223 deletions
|
|
@ -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;
|
||||
|
|
@ -53,6 +52,14 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment {
|
|||
printf( '<span class="post-author-badge" aria-hidden="true">%s</span>', twentynineteen_get_icon_svg( 'check', 24 ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* Using the `check` icon instead of `check_circle`, since we can't add a
|
||||
* fill color to the inner check shape when in circle form.
|
||||
*/
|
||||
if ( twentynineteen_is_comment_by_post_author( $comment ) ) {
|
||||
printf( '<span class="post-author-badge" aria-hidden="true">%s</span>', twentynineteen_get_icon_svg( 'check', 24 ) );
|
||||
}
|
||||
|
||||
printf(
|
||||
/* translators: %s: comment author link */
|
||||
wp_kses(
|
||||
|
|
@ -63,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 ) ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue