From 7f36bbbdf16656d9afbce05a77093f5fa63392a1 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 22 Mar 2018 18:56:33 +0000 Subject: [PATCH] Docs: Document `WP_Roles` properties with typed array notation. Props stevenlinx Fixes #38732 See #41756 Built from https://develop.svn.wordpress.org/trunk@42870 git-svn-id: http://core.svn.wordpress.org/trunk@42700 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-roles.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/class-wp-roles.php b/wp-includes/class-wp-roles.php index e696bc9fb9..18b0d55035 100644 --- a/wp-includes/class-wp-roles.php +++ b/wp-includes/class-wp-roles.php @@ -28,7 +28,7 @@ class WP_Roles { * List of roles and capabilities. * * @since 2.0.0 - * @var array + * @var array[] */ public $roles; @@ -36,7 +36,7 @@ class WP_Roles { * List of the role objects. * * @since 2.0.0 - * @var array + * @var WP_Role[] */ public $role_objects = array(); @@ -44,7 +44,7 @@ class WP_Roles { * List of role names. * * @since 2.0.0 - * @var array + * @var string[] */ public $role_names = array(); @@ -254,7 +254,7 @@ class WP_Roles { * * @since 2.0.0 * - * @return array List of role names. + * @return string[] List of role names. */ public function get_names() { return $this->role_names; diff --git a/wp-includes/version.php b/wp-includes/version.php index e0021a95aa..1b14bb4bf4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42866'; +$wp_version = '5.0-alpha-42870'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.