From 5986eb3c9b6ffbd5cea77bb35990dfc16dd0eb3f Mon Sep 17 00:00:00 2001 From: Dovid Levine Date: Mon, 30 Dec 2024 14:27:58 +0200 Subject: [PATCH] fix: strict int to float comparison in gutenberg_tinycolor_bound01() --- lib/block-supports/duotone.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/block-supports/duotone.php b/lib/block-supports/duotone.php index 98791fe05c1096..f6352f2640f756 100644 --- a/lib/block-supports/duotone.php +++ b/lib/block-supports/duotone.php @@ -80,7 +80,7 @@ function gutenberg_tinycolor_bound01( $n, $max ) { _deprecated_function( __FUNCTION__, '6.3.0' ); - if ( 'string' === gettype( $n ) && str_contains( $n, '.' ) && 1 === (float) $n ) { + if ( 'string' === gettype( $n ) && str_contains( $n, '.' ) && 1.0 === (float) $n ) { $n = '100%'; }