WordPress.org

Make WordPress Core

Changeset 52301


Ignore:
Timestamp:
12/01/2021 02:06:10 PM (8 weeks ago)
Author:
audrasjb
Message:

Docs: Misc Docblock corrections in duotone.php file.

Follow-up to [50929].

See #53399.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-supports/duotone.php

    r52069 r52301  
    4646 * @param mixed $n   Number of unknown type.
    4747 * @param int   $max Upper value of the range to bound to.
    48  *
    4948 * @return float Value in the range [0, 1].
    5049 */
     
    7978 * @access private
    8079 *
    81  * @param  mixed $n  Number of unknown type.
    82  * @return float      Value in the range [0,1].
     80 * @param mixed $n Number of unknown type.
     81 * @return float Value in the range [0,1].
    8382 */
    8483function _wp_tinycolor_bound_alpha( $n ) {
     
    9392
    9493/**
    95  * Round and convert values of an RGB object.
     94 * Rounds and converts values of an RGB object.
    9695 *
    9796 * Direct port of TinyColor's function, lightly simplified to maintain
     
    104103 *
    105104 * @param array $rgb_color RGB object.
    106  *
    107105 * @return array Rounded and converted RGB object.
    108106 */
     
    129127 * @param float $q second component.
    130128 * @param float $t third component.
    131  *
    132129 * @return float R, G, or B component.
    133130 */
     
    152149
    153150/**
    154  * Convert an HSL object to an RGB object with converted and rounded values.
     151 * Converts an HSL object to an RGB object with converted and rounded values.
    155152 *
    156153 * Direct port of TinyColor's function, lightly simplified to maintain
     
    163160 *
    164161 * @param array $hsl_color HSL object.
    165  *
    166162 * @return array Rounded and converted RGB object.
    167163 */
     
    206202 *
    207203 * @param string $color_str CSS color string.
    208  *
    209204 * @return array RGB object.
    210205 */
     
    394389
    395390 * @param array $preset Duotone preset value as seen in theme.json.
    396  *
    397391 * @return string Duotone CSS filter property.
    398392 */
     
    484478 * @param string $block_content Rendered block content.
    485479 * @param array  $block         Block object.
    486  *
    487480 * @return string Filtered block content.
    488481 */
Note: See TracChangeset for help on using the changeset viewer.