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:
parent
1daf22cae6
commit
b618452411
|
@ -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 );
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue