Make WordPress Core

Changeset 59090


Ignore:
Timestamp:
09/25/2024 06:06:27 PM (16 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.

Location:
trunk/src/wp-content/themes/twentynineteen
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/classes/class-twentynineteen-svg-icons.php

    r56547 r59090  
    2424    /**
    2525     * Gets the SVG code for a given icon.
     26     *
     27     * @param string $group The group of icons ('ui' or 'social').
     28     * @param string $icon  The specific icon to retrieve.
     29     * @param int    $size  The desired width and height for the SVG icon.
    2630     */
    2731    public static function get_svg( $group, $icon, $size ) {
     
    4549    /**
    4650     * Detects the social network from a URL and returns the SVG code for its icon.
     51     *
     52     * @param string $uri  The URL of the social network link.
     53     * @param int    $size The desired width and height for the SVG icon.
    4754     */
    4855    public static function get_social_link_svg( $uri, $size ) {
  • trunk/src/wp-content/themes/twentynineteen/header.php

    r59026 r59090  
    1111 * @since Twenty Nineteen 1.0
    1212 */
     13
    1314?><!doctype html>
    1415<html <?php language_attributes(); ?>>
  • 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.