Skip to content

Commit 494dbf5

Browse files
committed
Simplify length check
1 parent da81a1e commit 494dbf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-content/themes/twentysixteen/js/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132

133133
// Fix sub-menus for touch devices and better focus for hidden submenu items for accessibility.
134134
( function () {
135-
if ( ! siteNavigation || siteNavigation.children.length === 0 ) {
135+
if ( ! siteNavigation || ! siteNavigation.children.length ) {
136136
return;
137137
}
138138

0 commit comments

Comments
 (0)