File tree Expand file tree Collapse file tree
src/wp-includes/block-supports Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments