Skip to content

Commit 822a4b5

Browse files
committed
Improve fomatting
1 parent d20f567 commit 822a4b5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ public function widget( $args, $instance ) {
109109

110110
<?php ob_start(); ?>
111111
<script>
112-
(( dropdownId ) => {
112+
( ( dropdownId ) => {
113113
const dropdown = document.getElementById( dropdownId );
114-
function onSelectChange(event) {
115-
setTimeout( function() {
114+
function onSelectChange( event ) {
115+
setTimeout( () => {
116116
if ( 'change' === event.type && 'escape' === dropdown.dataset.lastkey ) {
117117
return;
118118
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ public function widget( $args, $instance ) {
9696
?>
9797

9898
<script>
99-
(( dropdownId ) => {
100-
const dropdown = document.getElementById( dropdownId );
101-
function onCatChange(event) {
102-
setTimeout(function() {
99+
( ( dropdownId ) => {
100+
const dropdown = document.getElementById( dropdownId );
101+
function onCatChange( event ) {
102+
setTimeout( () => {
103103
if ( 'change' === event.type && 'escape' === dropdown.dataset.lastkey ) {
104104
return;
105105
}

0 commit comments

Comments
 (0)