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:
parent
13ec34335a
commit
a745c3f168
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue