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.


git-svn-id: https://develop.svn.wordpress.org/trunk@38030 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2016-07-10 17:40:11 +00:00
parent 13ec34335a
commit a745c3f168
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ final class WP_Post_Type {
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
* and page labels for hierarchical ones.
@ -41,7 +41,7 @@ final class WP_Post_Type {
*
* @since 4.6.0
* @access public
* @var array $labels
* @var object $labels
*/
public $labels;