Skip to content

Commit

Permalink
Coding Standards: Correct default values in WP_Comment to match the…
Browse files Browse the repository at this point in the history
… documented type.

Follow-up to [33891], [48941].

See #62279.

git-svn-id: https://develop.svn.wordpress.org/trunk@59805 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Feb 11, 2025
1 parent d8425b2 commit a91a243
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wp-includes/class-wp-comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -144,7 +144,7 @@ final class WP_Comment {
* @since 4.4.0
* @var string
*/
public $user_id = 0;
public $user_id = '0';

/**
* Comment children.
Expand Down

0 comments on commit a91a243

Please sign in to comment.