--- a/wp/wp-includes/class-walker-comment.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/class-walker-comment.php Fri Sep 05 18:40:08 2025 +0200
@@ -150,7 +150,6 @@
unset( $children_elements[ $id ] );
}
-
}
/**
@@ -175,7 +174,7 @@
// Restores the more descriptive, specific name for use within this method.
$comment = $data_object;
- $depth++;
+ ++$depth;
$GLOBALS['comment_depth'] = $depth;
$GLOBALS['comment'] = $comment;
@@ -279,7 +278,7 @@
$commenter = wp_get_current_commenter();
$show_pending_links = ! empty( $commenter['comment_author'] );
- if ( $comment && '0' == $comment->comment_approved && ! $show_pending_links ) {
+ if ( $comment && '0' === $comment->comment_approved && ! $show_pending_links ) {
$comment_text = wp_kses( $comment_text, array() );
}
@@ -321,14 +320,14 @@
<?php endif; ?>
<div class="comment-author vcard">
<?php
- if ( 0 != $args['avatar_size'] ) {
+ if ( 0 !== $args['avatar_size'] ) {
echo get_avatar( $comment, $args['avatar_size'] );
}
?>
<?php
$comment_author = get_comment_author_link( $comment );
- if ( '0' == $comment->comment_approved && ! $show_pending_links ) {
+ if ( '0' === $comment->comment_approved && ! $show_pending_links ) {
$comment_author = get_comment_author( $comment );
}
@@ -339,7 +338,7 @@
);
?>
</div>
- <?php if ( '0' == $comment->comment_approved ) : ?>
+ <?php if ( '0' === $comment->comment_approved ) : ?>
<em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em>
<br />
<?php endif; ?>
@@ -424,14 +423,14 @@
<footer class="comment-meta">
<div class="comment-author vcard">
<?php
- if ( 0 != $args['avatar_size'] ) {
+ if ( 0 !== $args['avatar_size'] ) {
echo get_avatar( $comment, $args['avatar_size'] );
}
?>
<?php
$comment_author = get_comment_author_link( $comment );
- if ( '0' == $comment->comment_approved && ! $show_pending_links ) {
+ if ( '0' === $comment->comment_approved && ! $show_pending_links ) {
$comment_author = get_comment_author( $comment );
}
@@ -461,7 +460,7 @@
?>
</div><!-- .comment-metadata -->
- <?php if ( '0' == $comment->comment_approved ) : ?>
+ <?php if ( '0' === $comment->comment_approved ) : ?>
<em class="comment-awaiting-moderation"><?php echo $moderation_note; ?></em>
<?php endif; ?>
</footer><!-- .comment-meta -->
@@ -471,7 +470,7 @@
</div><!-- .comment-content -->
<?php
- if ( '1' == $comment->comment_approved || $show_pending_links ) {
+ if ( '1' === $comment->comment_approved || $show_pending_links ) {
comment_reply_link(
array_merge(
$args,