Make WordPress Core


Ignore:
Timestamp:
09/25/2024 06:06:27 PM (17 months ago)
Author:
SergeyBiryukov
Message:

Twenty Nineteen: Add missing documentation for helper function parameters.

Follow-up to [43808], [44149], [47214], [47242].

Props pitamdey.
Fixes #62112.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/inc/helper-functions.php

    r49602 r59090  
    3333 *
    3434 * @see get_comment_class()
     35 *
     36 * @param WP_Comment|null $comment The comment object to check. Defaults to the current comment.
     37 * @return bool True if the comment is by the author of the post, false otherwise.
    3538 */
    3639function twentynineteen_is_comment_by_post_author( $comment = null ) {
     
    8386
    8487/**
    85  * Converts HSL to HEX colors.
     88 * Converts HSL to HEX or RGB colors.
     89 *
     90 * @param float $h      The hue component (0-360).
     91 * @param float $s      The saturation component (0-100).
     92 * @param float $l      The lightness component (0-100).
     93 * @param bool  $to_hex Whether to convert to HEX format (true) or RGB (false). Default true.
    8694 */
    8795function twentynineteen_hsl_hex( $h, $s, $l, $to_hex = true ) {
Note: See TracChangeset for help on using the changeset viewer.