From cc416fc17bab5fb283c05ab80da841e986e61864 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 18 Mar 2024 15:46:13 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-includes/class-walker-comment.php`. Follow-up to [8869], [9207], [23694], [47887]. Props aristath, poena, afercia, SergeyBiryukov. See #60700. Built from https://develop.svn.wordpress.org/trunk@57850 git-svn-id: http://core.svn.wordpress.org/trunk@57351 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-walker-comment.php | 16 ++++++++-------- wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-includes/class-walker-comment.php b/wp-includes/class-walker-comment.php index 825a28334b..3d2eb012e4 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 {
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 { ); ?>
- comment_approved ) : ?> + comment_approved ) : ?>
@@ -423,14 +423,14 @@ class Walker_Comment extends Walker { @@ -470,7 +470,7 @@ class Walker_Comment extends Walker { comment_approved || $show_pending_links ) { + if ( '1' === $comment->comment_approved || $show_pending_links ) { comment_reply_link( array_merge( $args, diff --git a/wp-includes/version.php b/wp-includes/version.php index 95f13b8f05..5937fdcb16 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-57849'; +$wp_version = '6.6-alpha-57850'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.