diff --git a/src/wp-includes/class-wp-post.php b/src/wp-includes/class-wp-post.php index 682b000f39..2ce3144a86 100644 --- a/src/wp-includes/class-wp-post.php +++ b/src/wp-includes/class-wp-post.php @@ -37,7 +37,7 @@ final class WP_Post { * @since 3.5.0 * @var string */ - public $post_author = 0; + public $post_author = '0'; /** * The post's local publication time. @@ -207,7 +207,7 @@ final class WP_Post { * @since 3.5.0 * @var string */ - public $comment_count = 0; + public $comment_count = '0'; /** * Stores the post object's sanitization level.