diff --git a/wp-content/themes/twentynineteen/inc/helper-functions.php b/wp-content/themes/twentynineteen/inc/helper-functions.php index bea7099718..c18275604a 100644 --- a/wp-content/themes/twentynineteen/inc/helper-functions.php +++ b/wp-content/themes/twentynineteen/inc/helper-functions.php @@ -94,15 +94,8 @@ function twentynineteen_hsl_hex( $h, $s, $l, $to_hex = true ) { $g = $l; $b = $l; $v = ( $l <= 0.5 ) ? ( $l * ( 1.0 + $s ) ) : ( $l + $s - $l * $s ); - if ( $v > 0 ) { - $m; - $sv; - $sextant; - $fract; - $vsf; - $mid1; - $mid2; + if ( $v > 0 ) { $m = $l + $l - $v; $sv = ( $v - $m ) / $v; $h *= 6.0; @@ -145,6 +138,7 @@ function twentynineteen_hsl_hex( $h, $s, $l, $to_hex = true ) { break; } } + $r = round( $r * 255, 0 ); $g = round( $g * 255, 0 ); $b = round( $b * 255, 0 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index fb37dde2aa..69ec379e73 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta4-49601'; +$wp_version = '5.6-beta4-49602'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.