From 06ab7e3f6b893b1d0cde5f55656b913c07f33466 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 18 Nov 2019 17:07:01 +0000 Subject: [PATCH] Twenty Twenty: Fix typos in a variable name and inline comment in `assets/js/color-calculations.js`. Props tanvirul. Fixes #48704. Built from https://develop.svn.wordpress.org/trunk@46747 git-svn-id: http://core.svn.wordpress.org/trunk@46547 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentytwenty/assets/js/color-calculations.js | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentytwenty/assets/js/color-calculations.js b/wp-content/themes/twentytwenty/assets/js/color-calculations.js index 716eb2302f..23f3cbad65 100644 --- a/wp-content/themes/twentytwenty/assets/js/color-calculations.js +++ b/wp-content/themes/twentytwenty/assets/js/color-calculations.js @@ -38,7 +38,7 @@ _twentyTwentyColor.prototype.setAccentColorsArray = function() { minSaturation = 65, maxSaturation = 100, minLightness = 30, - maxLighness = 80, + maxLightness = 80, stepSaturation = 2, stepLightness = 2, pushColor = function() { @@ -86,7 +86,7 @@ _twentyTwentyColor.prototype.setAccentColorsArray = function() { // We're using `for` loops here because they perform marginally better than other loops. for ( s = minSaturation; s <= maxSaturation; s += stepSaturation ) { - for ( l = minLightness; l <= maxLighness; l += stepLightness ) { + for ( l = minLightness; l <= maxLightness; l += stepLightness ) { pushColor( s, l ); } } @@ -96,7 +96,7 @@ _twentyTwentyColor.prototype.setAccentColorsArray = function() { return 7 <= color.contrastBackground; } ); - // If we have AAA-compliant colors, alpways prefer them. + // If we have AAA-compliant colors, always prefer them. if ( aaa.length ) { this.accentColorsArray = aaa; } diff --git a/wp-includes/version.php b/wp-includes/version.php index dd4319cfd9..f40c04453a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46746'; +$wp_version = '5.4-alpha-46747'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.