From b6184524114eb77e8273163244cb74f7ef9aa880 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 15 Nov 2020 12:16:09 +0000 Subject: [PATCH] Twenty Nineteen: Remove unnecessary references to some variables in `twentynineteen_hsl_hex()` before they are defined. Props ankitmaru, sabernhardt. Fixes #49052. Built from https://develop.svn.wordpress.org/trunk@49602 git-svn-id: http://core.svn.wordpress.org/trunk@49340 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentynineteen/inc/helper-functions.php | 10 ++-------- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) 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.