Make WordPress Core


Ignore:
Timestamp:
06/20/2020 12:00:07 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Capitalize "ID", when referring to a post ID, term ID, etc. in a more consistent way.

See #49572.

File:
1 edited

Legend:

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

    r48067 r48104  
    3838 * @since 4.8.0 The `$visited` parameter was deprecated and renamed to `$deprecated`.
    3939 *
    40  * @param int $id Category ID.
    41  * @param bool $link Optional, default is false. Whether to format with link.
    42  * @param string $separator Optional, default is '/'. How to separate categories.
    43  * @param bool $nicename Optional, default is false. Whether to use nice name for display.
    44  * @param array $deprecated Not used.
     40 * @param int    $id        Category ID.
     41 * @param bool   $link       Optional. Whether to format with link. Default false.
     42 * @param string $separator  Optional. How to separate categories. Default '/'.
     43 * @param bool   $nicename   Optional. Whether to use nice name for display. Default false.
     44 * @param array  $deprecated Not used.
    4545 * @return string|WP_Error A list of category parents on success, WP_Error on failure.
    4646 */
     
    6565 * Retrieves post categories.
    6666 *
    67  * This tag may be used outside The Loop by passing a post id as the parameter.
     67 * This tag may be used outside The Loop by passing a post ID as the parameter.
    6868 *
    6969 * Note: This function only returns results from the default "category" taxonomy.
Note: See TracChangeset for help on using the changeset viewer.