Make WordPress Core


Ignore:
Timestamp:
03/25/2018 07:32:24 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-includes/class-wp-user.php

    r42747 r42876  
    611611         * @since 3.6.0 Added $old_roles to include an array of the user's previous roles.
    612612         *
    613          * @param int    $user_id   The user ID.
    614          * @param string $role      The new role.
    615          * @param array $old_roles An array of the user's previous roles.
     613         * @param int      $user_id   The user ID.
     614         * @param string   $role      The new role.
     615         * @param string[] $old_roles An array of the user's previous roles.
    616616         */
    617617        do_action( 'set_user_role', $this->ID, $role, $old_roles );
     
    751751         * @since 3.7.0 Added the user object.
    752752         *
    753          * @param array   $allcaps An array of all the user's capabilities.
    754          * @param array  $caps    Actual capabilities for meta capability.
    755          * @param array   $args    Optional parameters passed to has_cap(), typically object ID.
    756          * @param WP_User $user    The user object.
     753         * @param bool[]   $allcaps An array of all the user's capabilities.
     754         * @param string[] $caps    Actual capabilities for meta capability.
     755         * @param array    $args    Optional parameters passed to has_cap(), typically object ID.
     756         * @param WP_User  $user    The user object.
    757757         */
    758758        $capabilities = apply_filters( 'user_has_cap', $this->allcaps, $caps, $args, $this );
Note: See TracChangeset for help on using the changeset viewer.