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
This commit is contained in:
Sergey Biryukov 2020-11-15 12:16:09 +00:00
parent 1daf22cae6
commit b618452411
2 changed files with 3 additions and 9 deletions

View File

@ -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 );

View File

@ -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.