From a745c3f1682bac2cb792ef195661296706ea67a5 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 10 Jul 2016 17:40:11 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-post-type.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-post-type.php b/src/wp-includes/class-wp-post-type.php index 4b692d804b..6aeab9bbd4 100644 --- a/src/wp-includes/class-wp-post-type.php +++ b/src/wp-includes/class-wp-post-type.php @@ -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;