diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/class-walker-comment.php --- 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 @@
comment_approved && ! $show_pending_links ) { + if ( '0' === $comment->comment_approved && ! $show_pending_links ) { $comment_author = get_comment_author( $comment ); } @@ -339,7 +338,7 @@ ); ?>
- comment_approved ) : ?> + comment_approved ) : ?>
@@ -424,14 +423,14 @@ @@ -471,7 +470,7 @@ comment_approved || $show_pending_links ) { + if ( '1' === $comment->comment_approved || $show_pending_links ) { comment_reply_link( array_merge( $args,