From 0909a94115693095d6fefec492238f3e7ce79a0c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 11 Feb 2025 13:40:30 +0000 Subject: [PATCH] Coding Standards: Correct default values in `WP_Comment` to match the documented type. Follow-up to [33891], [48941]. See #62279. Built from https://develop.svn.wordpress.org/trunk@59805 git-svn-id: http://core.svn.wordpress.org/trunk@59147 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-comment.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/class-wp-comment.php b/wp-includes/class-wp-comment.php index c5a0bd9aaf..b42523da37 100644 --- a/wp-includes/class-wp-comment.php +++ b/wp-includes/class-wp-comment.php @@ -33,7 +33,7 @@ final class WP_Comment { * @since 4.4.0 * @var string */ - public $comment_post_ID = 0; + public $comment_post_ID = '0'; /** * Comment author name. @@ -99,7 +99,7 @@ final class WP_Comment { * @since 4.4.0 * @var string */ - public $comment_karma = 0; + public $comment_karma = '0'; /** * Comment approval status. @@ -134,7 +134,7 @@ final class WP_Comment { * @since 4.4.0 * @var string */ - public $comment_parent = 0; + public $comment_parent = '0'; /** * Comment author ID. @@ -144,7 +144,7 @@ final class WP_Comment { * @since 4.4.0 * @var string */ - public $user_id = 0; + public $user_id = '0'; /** * Comment children. diff --git a/wp-includes/version.php b/wp-includes/version.php index 56d4cd67cf..72353258a0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59804'; +$wp_version = '6.8-alpha-59805'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.