Docs: Document `WP_Roles` properties with typed array notation.
Props stevenlinx Fixes #38732 See #41756 git-svn-id: https://develop.svn.wordpress.org/trunk@42870 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
96695f2864
commit
100efa7e1c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue