From b4853c1dd92b594c0c90a8b290183f9a5a089b24 Mon Sep 17 00:00:00 2001 From: desrosj Date: Tue, 20 Oct 2020 18:34:06 +0000 Subject: [PATCH] Twenty Twenty: Use `jshint` exclude statements instead of `eslint`. Also, exclude the `node_modules` folder within `twentytwentyone`. See #51526. Built from https://develop.svn.wordpress.org/trunk@49250 git-svn-id: http://core.svn.wordpress.org/trunk@49012 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../themes/twentytwentyone/assets/js/customize-helpers.js | 2 +- .../themes/twentytwentyone/assets/js/primary-navigation.js | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js b/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js index 94e00ca617..6523860a87 100644 --- a/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js +++ b/wp-content/themes/twentytwentyone/assets/js/customize-helpers.js @@ -5,7 +5,7 @@ * * @return {number} - Returns the luminance, number between 0 and 255. */ -function twentytwentyoneGetHexLum( hex ) { // eslint-disable-line no-unused-vars +function twentytwentyoneGetHexLum( hex ) { // jshint ignore:line var rgb = twentytwentyoneGetRgbFromHex( hex ); return Math.round( ( 0.2126 * rgb.r ) + ( 0.7152 * rgb.g ) + ( 0.0722 * rgb.b ) ); } diff --git a/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js b/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js index b4e09a1792..54be8e3de1 100644 --- a/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js +++ b/wp-content/themes/twentytwentyone/assets/js/primary-navigation.js @@ -38,7 +38,7 @@ function twentytwentyoneCollapseMenuOnClickOutside( event ) { * * @param {Element} el - The element. */ -function twentytwentyoneExpandSubMenu( el ) { // eslint-disable-line no-unused-vars +function twentytwentyoneExpandSubMenu( el ) { // jshint ignore:line // Close submenu that was opened from a hover action. // We'll return early in this case to avoid changing the aria-expanded attribute. if ( el.parentNode.classList.contains( 'hover' ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index e614543c4a..4e3d2471f8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-49249'; +$wp_version = '5.6-alpha-49250'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.