Make WordPress Core

Changeset 59102


Ignore:
Timestamp:
09/27/2024 04:11:02 PM (20 months ago)
Author:
SergeyBiryukov
Message:

Twenty Nineteen: Add more missing documentation for helper function parameters.

Follow-up to [59090].

Props viralsampat.
See #62112.

File:
1 edited

Legend:

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

    r56447 r59102  
    1010/**
    1111 * Gets the SVG code for a given icon.
     12 *
     13 * @param string $icon The specific icon to retrieve.
     14 * @param int    $size The desired width and height for the SVG icon.
    1215 */
    1316function twentynineteen_get_icon_svg( $icon, $size = 24 ) {
     
    1720/**
    1821 * Gets the SVG code for a given social icon.
     22 *
     23 * @param string $icon The specific icon to retrieve.
     24 * @param int    $size The desired width and height for the SVG icon.
    1925 */
    2026function twentynineteen_get_social_icon_svg( $icon, $size = 24 ) {
     
    2430/**
    2531 * Detects the social network from a URL and returns the SVG code for its icon.
     32 *
     33 * @param string $uri  The URL of the social network link.
     34 * @param int    $size The desired width and height for the SVG icon.
    2635 */
    2736function twentynineteen_get_social_link_svg( $uri, $size = 24 ) {
Note: See TracChangeset for help on using the changeset viewer.