Docs: The `$labels` property in `WP_Post_Type` is of type `object` as returned from `get_post_type_labels()`, not an array.

Props swissspidy.
See #36217.

Built from https://develop.svn.wordpress.org/trunk@38030


git-svn-id: http://core.svn.wordpress.org/trunk@37971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2016-07-10 17:41:30 +00:00
parent 31f150080a
commit 844ae66820
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ final class WP_Post_Type {
public $label; public $label;
/** /**
* An array of labels for this post type. * Labels object for this post type.
* *
* If not set, post labels are inherited for non-hierarchical types * If not set, post labels are inherited for non-hierarchical types
* and page labels for hierarchical ones. * and page labels for hierarchical ones.
@ -41,7 +41,7 @@ final class WP_Post_Type {
* *
* @since 4.6.0 * @since 4.6.0
* @access public * @access public
* @var array $labels * @var object $labels
*/ */
public $labels; public $labels;

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.6-beta2-38029'; $wp_version = '4.6-beta2-38030';
/** /**
* 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.