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
This commit is contained in:
parent
4a39dde8f5
commit
1aa4b6f87f
@ -309,7 +309,7 @@ final class WP_Post_Type {
|
|||||||
*
|
*
|
||||||
* @since 4.6.0
|
* @since 4.6.0
|
||||||
* @access public
|
* @access public
|
||||||
* @var array $cap
|
* @var object $cap
|
||||||
*/
|
*/
|
||||||
public $cap;
|
public $cap;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user