فهرست منبع

Merge pull request #2756 from Automattic/fix/spearhead-custom-colors

Spearhead: fix custom colors
Jeff Ong 4 سال پیش
والد
کامیت
96c77a2a4b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      seedlet/inc/wpcom-colors-utils.php

+ 1 - 1
seedlet/inc/wpcom-colors-utils.php

@@ -97,7 +97,7 @@ function rgb_to_hsvl( $rgb ) {
 	$min_rgb           = min( $r, $g, $b );
 	$chroma            = $max_rgb - $min_rgb;
 	$v                 = 100 * $max_rgb;
-	if ( 0 === $chroma ) {
+	if ( 0 === (int) $chroma ) {
 		return array( 0, 0, $v, $l );
 	}
 	$s = 100 * ( $chroma / $max_rgb );