Skip to content

Commit 47217cb

Browse files
Coding Standards: Correct default values in WP_Post to match the documented type.
Follow-up to [22264], [25086]. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59816 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 24a2eac commit 47217cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class WP_Post {
3737
* @since 3.5.0
3838
* @var string
3939
*/
40-
public $post_author = 0;
40+
public $post_author = '0';
4141

4242
/**
4343
* The post's local publication time.
@@ -207,7 +207,7 @@ final class WP_Post {
207207
* @since 3.5.0
208208
* @var string
209209
*/
210-
public $comment_count = 0;
210+
public $comment_count = '0';
211211

212212
/**
213213
* Stores the post object's sanitization level.

0 commit comments

Comments
 (0)