Skip to content

Commit a91a243

Browse files
Coding Standards: Correct default values in WP_Comment to match the documented type.
Follow-up to [33891], [48941]. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59805 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d8425b2 commit a91a243

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-includes/class-wp-comment.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class WP_Comment {
3333
* @since 4.4.0
3434
* @var string
3535
*/
36-
public $comment_post_ID = 0;
36+
public $comment_post_ID = '0';
3737

3838
/**
3939
* Comment author name.
@@ -99,7 +99,7 @@ final class WP_Comment {
9999
* @since 4.4.0
100100
* @var string
101101
*/
102-
public $comment_karma = 0;
102+
public $comment_karma = '0';
103103

104104
/**
105105
* Comment approval status.
@@ -134,7 +134,7 @@ final class WP_Comment {
134134
* @since 4.4.0
135135
* @var string
136136
*/
137-
public $comment_parent = 0;
137+
public $comment_parent = '0';
138138

139139
/**
140140
* Comment author ID.
@@ -144,7 +144,7 @@ final class WP_Comment {
144144
* @since 4.4.0
145145
* @var string
146146
*/
147-
public $user_id = 0;
147+
public $user_id = '0';
148148

149149
/**
150150
* Comment children.

0 commit comments

Comments
 (0)