Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions js/customizer.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* File customizer.js.
* Theme Customizer enhancements for a better user experience. Contains
* handlers to make Theme Customizer preview reload changes asynchronously.
*
* Theme Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
* @requires customize-preview.js
* @package _s
*/

( function( $ ) {
Expand Down
9 changes: 5 additions & 4 deletions js/navigation.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/**
* File navigation.js.
*
* Handles toggling the navigation menu for small screens and enables TAB key
* navigation support for dropdown menus.
*
* @package _s
*/

( function() {
var container, button, menu, links, i, len;

Expand Down Expand Up @@ -86,7 +87,7 @@

if ( ! menuItem.classList.contains( 'focus' ) ) {
e.preventDefault();
for ( i = 0; i < menuItem.parentNode.children.length; ++i ) {
for ( var i = 0, len = menuItem.parentNode.children.length; i < len; ++i ) {
if ( menuItem === menuItem.parentNode.children[i] ) {
continue;
}
Expand All @@ -98,7 +99,7 @@
}
};

for ( i = 0; i < parentLink.length; ++i ) {
for ( var i = 0, len = parentLink.length; i < len; ++i ) {
parentLink[i].addEventListener( 'touchstart', touchStartFn, false );
}
}
Expand Down
7 changes: 4 additions & 3 deletions js/skip-link-focus-fix.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/**
* File skip-link-focus-fix.js.
*
* Helps with accessibility for keyboard only users.
*
* Learn more: https://git.io/vWdr2
* @link https://git.io/vWdr2
*
* @package _s
*/

( function() {
var isIe = /(trident|msie)/i.test( navigator.userAgent );

Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<arg value="psvn"/>

<!-- Only check the PHP files. JS files are checked separately with JSCS and JSHint. -->
<arg name="extensions" value="php"/>
<arg name="extensions" value="php,js"/>

<!-- Check all files in this directory and the directories below it. -->
<file>.</file>
Expand Down