From 1aa4b6f87f66b11367cc807fcc24dc6093ed0bf9 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 18 Jul 2016 22:51:39 +0000 Subject: [PATCH] Docs: Correct type of `WP_Post_Type::$cap` from `array` to `object`. Fixes typo introduced in r37890. The `WP_Post_Type::$cap` property is set to the return value of `get_post_type_capabilities()` which is an `object`. See #36217. git-svn-id: https://develop.svn.wordpress.org/trunk@38097 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-post-type.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-post-type.php b/src/wp-includes/class-wp-post-type.php index 5be7a16ed4..c08ca5e5bc 100644 --- a/src/wp-includes/class-wp-post-type.php +++ b/src/wp-includes/class-wp-post-type.php @@ -309,7 +309,7 @@ final class WP_Post_Type { * * @since 4.6.0 * @access public - * @var array $cap + * @var object $cap */ public $cap;