Skip to content

Commit 775a340

Browse files
Update src/wp-includes/widgets/class-wp-widget-archives.php
Co-authored-by: Weston Ruter <[email protected]>
1 parent edaebf6 commit 775a340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ function onSelectChange(e) {
117117
if ( 'change' === e.type && 'escape' === lastKey ) {
118118
return;
119119
}
120-
if ( dropdown.options[ dropdown.selectedIndex ].value !== '' ) {
121-
document.location.href = this.options[ this.selectedIndex ].value;
120+
if ( dropdown.value ) {
121+
document.location.href = dropdown.value;
122122
}
123123
}, 250 );
124124
}

0 commit comments

Comments
 (0)