mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 20:09:53 +01:00
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
This commit is contained in:
parent
24a2eacf7d
commit
47217cbfc8
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user