diff -r 34716fd837a4 -r be944660c56a wp/wp-admin/js/language-chooser.js --- a/wp/wp-admin/js/language-chooser.js Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-admin/js/language-chooser.js Wed Sep 21 18:19:35 2022 +0200 @@ -14,7 +14,7 @@ return; } -select.focus().on( 'change', function() { +select.trigger( 'focus' ).on( 'change', function() { /* * When a language is selected, set matching translation to continue button * and attach the language attribute. @@ -26,7 +26,7 @@ }); }); -$( 'form' ).submit( function() { +$( 'form' ).on( 'submit', function() { // Show spinner for languages that need to be downloaded. if ( ! select.children( 'option:selected' ).data( 'installed' ) ) { $( this ).find( '.step .spinner' ).css( 'visibility', 'visible' );