From 844ae6682010e4fefc50bfd0244fe8180d905fe5 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 10 Jul 2016 17:41:30 +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. Built from https://develop.svn.wordpress.org/trunk@38030 git-svn-id: http://core.svn.wordpress.org/trunk@37971 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-post-type.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-post-type.php b/wp-includes/class-wp-post-type.php index 4b692d804b..6aeab9bbd4 100644 --- a/wp-includes/class-wp-post-type.php +++ b/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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 8a3784d087..da233525c3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.