updated theme Twenty Nineteen version 2.5

This commit is contained in:
2023-03-31 11:25:02 +00:00
committed by Gitium
parent 97859556db
commit 1c5b451d2f
13 changed files with 587 additions and 1010 deletions

View File

@ -36,7 +36,7 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment {
$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 ( 0 !== (int) $args['avatar_size'] ) {
if ( empty( $comment_author_url ) ) {
echo $avatar;
} else {
@ -78,10 +78,9 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment {
$comment_timestamp = sprintf( __( '%1$s at %2$s', 'twentynineteen' ), get_comment_date( '', $comment ), get_comment_time() );
printf(
'<a href="%s"><time datetime="%s" title="%s">%s</time></a>',
'<a href="%s"><time datetime="%s">%s</time></a>',
esc_url( get_comment_link( $comment, $args ) ),
get_comment_time( 'c' ),
esc_attr( $comment_timestamp ),
$comment_timestamp
);
@ -99,7 +98,7 @@ class TwentyNineteen_Walker_Comment extends Walker_Comment {
}
?>
<?php if ( '0' == $comment->comment_approved ) : ?>
<?php if ( '0' === $comment->comment_approved ) : ?>
<p class="comment-awaiting-moderation"><?php echo $moderation_note; ?></p>
<?php endif; ?>