Skip to content

Commit 33a0355

Browse files
committed
Mark function as of internal use only
1 parent 944308b commit 33a0355

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/wp-includes/block-supports/duotone.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@ function wp_tinycolor_bound01( $n, $max ) {
7676
* @see https://github.com/bgrins/TinyColor
7777
*
7878
* @since 5.9.0
79+
* @access private
7980
*
8081
* @param mixed $n Number of unknown type.
8182
* @return float Value in the range [0,1].
8283
*/
83-
function wp_tinycolor_bound_alpha( $n ) {
84+
function _wp_tinycolor_bound_alpha( $n ) {
8485
if ( is_numeric( $n ) ) {
8586
$n = (float) $n;
8687
if ( $n >= 0 && $n <= 1 ) {
@@ -243,7 +244,7 @@ function wp_tinycolor_string_to_rgb( $color_str ) {
243244
)
244245
);
245246

246-
$rgb['a'] = wp_tinycolor_bound_alpha( $match[4] );
247+
$rgb['a'] = _wp_tinycolor_bound_alpha( $match[4] );
247248

248249
return $rgb;
249250
}
@@ -273,7 +274,7 @@ function wp_tinycolor_string_to_rgb( $color_str ) {
273274
)
274275
);
275276

276-
$rgb['a'] = wp_tinycolor_bound_alpha( $match[4] );
277+
$rgb['a'] = _wp_tinycolor_bound_alpha( $match[4] );
277278

278279
return $rgb;
279280
}

0 commit comments

Comments
 (0)