Make WordPress Core

Changeset 42870


Ignore:
Timestamp:
03/22/2018 06:55:20 PM (6 years ago)
Author:
johnbillion
Message:

Docs: Document WP_Roles properties with typed array notation.

Props stevenlinx

Fixes #38732
See #41756

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-roles.php

    r42678 r42870  
    2929     *
    3030     * @since 2.0.0
    31      * @var array
     31     * @var array[]
    3232     */
    3333    public $roles;
     
    3737     *
    3838     * @since 2.0.0
    39      * @var array
     39     * @var WP_Role[]
    4040     */
    4141    public $role_objects = array();
     
    4545     *
    4646     * @since 2.0.0
    47      * @var array
     47     * @var string[]
    4848     */
    4949    public $role_names = array();
     
    255255     * @since 2.0.0
    256256     *
    257      * @return array List of role names.
     257     * @return string[] List of role names.
    258258     */
    259259    public function get_names() {
Note: See TracChangeset for help on using the changeset viewer.