mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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
This commit is contained in:
parent
89cb4caddc
commit
7f36bbbdf1
@ -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;
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user