From 6b79b0480753c3a92e62e11d7d5506093c4d5bde Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 23 Feb 2025 05:15:25 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `get_page_of_comment()`. Follow-up to [9367], [9522], [9808]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59860 git-svn-id: http://core.svn.wordpress.org/trunk@59202 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 80e4c1e238..1a1845189e 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -1066,7 +1066,7 @@ function get_page_of_comment( $comment_id, $args = array() ) { } // Find this comment's top-level parent if threading is enabled. - if ( $args['max_depth'] > 1 && 0 != $comment->comment_parent ) { + if ( $args['max_depth'] > 1 && '0' !== $comment->comment_parent ) { return get_page_of_comment( $comment->comment_parent, $args ); } @@ -1126,7 +1126,7 @@ function get_page_of_comment( $comment_id, $args = array() ) { $older_comment_count = $comment_query->query( $comment_args ); // No older comments? Then it's page #1. - if ( 0 == $older_comment_count ) { + if ( 0 === $older_comment_count ) { $page = 1; // Divide comments older than this one by comments per page to get this comment's page number. diff --git a/wp-includes/version.php b/wp-includes/version.php index 01b949f7ef..77e89b18e9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59859'; +$wp_version = '6.8-alpha-59860'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.