Make WordPress Core


Ignore:
Timestamp:
07/01/2021 09:01:17 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Corrections and improvements to types used in docblocks for symbols, properties, and filters.

See #53399

File:
1 edited

Legend:

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

    r51129 r51298  
    24432443 * @since 3.7.0
    24442444 *
    2445  * @param WP_User $user Optional. WP_User object.
     2445 * @param WP_User|null $user Optional. WP_User object.
    24462446 * @return string[] Array of contact method labels keyed by contact method.
    24472447 */
     
    24612461     * @since 2.9.0
    24622462     *
    2463      * @param string[] $methods Array of contact method labels keyed by contact method.
    2464      * @param WP_User  $user    WP_User object.
     2463     * @param string[]     $methods Array of contact method labels keyed by contact method.
     2464     * @param WP_User|null $user    WP_User object or null if none was provided.
    24652465     */
    24662466    return apply_filters( 'user_contactmethods', $methods, $user );
     
    24752475 * @access private
    24762476 *
    2477  * @param WP_User $user Optional. WP_User object. Default null.
     2477 * @param WP_User|null $user Optional. WP_User object. Default null.
    24782478 * @return string[] Array of contact method labels keyed by contact method.
    24792479 */
Note: See TracChangeset for help on using the changeset viewer.