Make WordPress Core


Ignore:
Timestamp:
03/25/2018 06:09:56 PM (7 years ago)
Author:
johnbillion
Message:

Docs: Document more parameters and properties using typed array notation.

See #41756

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/user.php

    r42855 r42875  
    255255 * @since 2.8.0
    256256 *
    257  * @return array
     257 * @return array[] Array of arrays containing role information.
    258258 */
    259259function get_editable_roles() {
     
    265265     * @since 2.8.0
    266266     *
    267      * @param array $all_roles List of roles.
     267     * @param array[] $all_roles Array of arrays containing role information.
    268268     */
    269269    $editable_roles = apply_filters( 'editable_roles', $all_roles );
     
    378378         * @since 3.4.0
    379379         *
    380          * @param array $post_types_to_delete Post types to delete.
    381          * @param int   $id                   User ID.
     380         * @param string[] $post_types_to_delete Array of post types to delete.
     381         * @param int      $id                   User ID.
    382382         */
    383383        $post_types_to_delete = apply_filters( 'post_types_to_delete_with_user', $post_types_to_delete, $id );
Note: See TracChangeset for help on using the changeset viewer.