Make WordPress Core


Ignore:
Timestamp:
02/21/2023 04:37:03 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Document default values for optional parameters in various DocBlocks.

Props paulkevan, costdev, audrasjb, SergeyBiryukov.
See #56792.

File:
1 edited

Legend:

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

    r54262 r55398  
    156156 *
    157157 * @param string    $field   Optional. The user field to retrieve. Default empty.
    158  * @param int|false $user_id Optional. User ID.
     158 * @param int|false $user_id Optional. User ID. Defaults to the current post author.
    159159 * @return string The author's field from the current author's DB object, otherwise an empty string.
    160160 */
     
    197197 * @param string    $field   Selects the field of the users record. See get_the_author_meta()
    198198 *                           for the list of possible fields.
    199  * @param int|false $user_id Optional. User ID.
     199 * @param int|false $user_id Optional. User ID. Defaults to the current post author.
    200200 *
    201201 * @see get_the_author_meta()
Note: See TracChangeset for help on using the changeset viewer.