WordPress.org

Make WordPress Core

Changeset 49602


Ignore:
Timestamp:
11/15/2020 12:14:45 PM (2 months ago)
Author:
SergeyBiryukov
Message:

Twenty Nineteen: Remove unnecessary references to some variables in twentynineteen_hsl_hex() before they are defined.

Props ankitmaru, sabernhardt.
Fixes #49052.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/inc/helper-functions.php

    r47242 r49602  
    9595    $b = $l;
    9696    $v = ( $l <= 0.5 ) ? ( $l * ( 1.0 + $s ) ) : ( $l + $s - $l * $s );
     97
    9798    if ( $v > 0 ) {
    98         $m;
    99         $sv;
    100         $sextant;
    101         $fract;
    102         $vsf;
    103         $mid1;
    104         $mid2;
    105 
    10699        $m       = $l + $l - $v;
    107100        $sv      = ( $v - $m ) / $v;
     
    146139        }
    147140    }
     141
    148142    $r = round( $r * 255, 0 );
    149143    $g = round( $g * 255, 0 );
Note: See TracChangeset for help on using the changeset viewer.