Coding Standards: Correct default values in WP_Post to match the documented type.
Follow-up to [22264], [25086]. See #62279. Built from https://develop.svn.wordpress.org/trunk@59816 git-svn-id: http://core.svn.wordpress.org/trunk@59158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -37,7 +37,7 @@ final class WP_Post {
|
|||||||
* @since 3.5.0
|
* @since 3.5.0
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public $post_author = 0;
|
public $post_author = '0';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The post's local publication time.
|
* The post's local publication time.
|
||||||
@@ -207,7 +207,7 @@ final class WP_Post {
|
|||||||
* @since 3.5.0
|
* @since 3.5.0
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public $comment_count = 0;
|
public $comment_count = '0';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores the post object's sanitization level.
|
* Stores the post object's sanitization level.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.8-alpha-59815';
|
$wp_version = '6.8-alpha-59816';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|||||||
Reference in New Issue
Block a user