Commit bef3863e28 for wordpress.org
commit bef3863e28fe1f03ffd2c773b89412f2b6dadc5b
Author: Sergey Biryukov <sergeybiryukov.ru@gmail.com>
Date: Sun Jun 29 17:47:33 2025 +0000
Coding Standards: Explicitly return `null` in `get_page_of_comment()`.
This matches the documented `@return` type.
Follow-up to [9367].
Props justlevine.
See #63268.
Built from https://develop.svn.wordpress.org/trunk@60362
git-svn-id: http://core.svn.wordpress.org/trunk@59698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/comment.php b/wp-includes/comment.php
index eb45efc9fd..9bd6fb2171 100644
--- a/wp-includes/comment.php
+++ b/wp-includes/comment.php
@@ -1050,7 +1050,7 @@ function get_page_of_comment( $comment_id, $args = array() ) {
$comment = get_comment( $comment_id );
if ( ! $comment ) {
- return;
+ return null;
}
$defaults = array(
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 1aa5779804..88b2611276 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.9-alpha-60361';
+$wp_version = '6.9-alpha-60362';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.