summaryrefslogtreecommitdiffstats
path: root/wp-includes/class-walker-comment.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
commit0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch)
treee139a90049b158d4eed892d1662ee7f5c358fa31 /wp-includes/class-walker-comment.php
parentAdding upstream version 6.5.5+dfsg1. (diff)
downloadwordpress-upstream.tar.xz
wordpress-upstream.zip
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/class-walker-comment.php')
-rw-r--r--wp-includes/class-walker-comment.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/wp-includes/class-walker-comment.php b/wp-includes/class-walker-comment.php
index 825a283..3d2eb01 100644
--- a/wp-includes/class-walker-comment.php
+++ b/wp-includes/class-walker-comment.php
@@ -278,7 +278,7 @@ class Walker_Comment extends Walker {
$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() );
}
@@ -320,14 +320,14 @@ class Walker_Comment extends Walker {
<?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 );
}
@@ -338,7 +338,7 @@ class Walker_Comment extends Walker {
);
?>
</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; ?>
@@ -423,14 +423,14 @@ class Walker_Comment extends Walker {
<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 );
}
@@ -460,7 +460,7 @@ class Walker_Comment extends Walker {
?>
</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 -->
@@ -470,7 +470,7 @@ class Walker_Comment extends Walker {
</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,