Skip to content

Commit 805da34

Browse files
Update src/wp-includes/widgets/class-wp-widget-categories.php
Co-authored-by: Weston Ruter <[email protected]>
1 parent a54d9f8 commit 805da34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/widgets/class-wp-widget-categories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function onCatChange(e) {
104104
if ( 'change' === e.type && 'escape' === lastKey ) {
105105
return;
106106
}
107-
if ( dropdown.options[ dropdown.selectedIndex ].value > 0 ) {
107+
if ( dropdown.value && parseInt( dropdown.value ) > 0 ) {
108108
dropdown.parentNode.submit();
109109
}
110110
}, 250 );

0 commit comments

Comments
 (0)