diff -r 34716fd837a4 -r be944660c56a wp/wp-admin/js/theme-plugin-editor.js --- a/wp/wp-admin/js/theme-plugin-editor.js Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-admin/js/theme-plugin-editor.js Wed Sep 21 18:19:35 2022 +0200 @@ -101,7 +101,7 @@ // Reveal the modal and set focus on the go back button. component.warning .removeClass( 'hidden' ) - .find( '.file-editor-warning-go-back' ).focus(); + .find( '.file-editor-warning-go-back' ).trigger( 'focus' ); // Get the links and buttons within the modal. component.warningTabbables = component.warning.find( 'a, button' ); // Attach event handlers. @@ -328,7 +328,7 @@ * @return {void} */ codeEditorSettings.onTabPrevious = function() { - $( '#templateside' ).find( ':tabbable' ).last().focus(); + $( '#templateside' ).find( ':tabbable' ).last().trigger( 'focus' ); }; /** @@ -339,7 +339,7 @@ * @return {void} */ codeEditorSettings.onTabNext = function() { - $( '#template' ).find( ':tabbable:not(.CodeMirror-code)' ).first().focus(); + $( '#template' ).find( ':tabbable:not(.CodeMirror-code)' ).first().trigger( 'focus' ); }; /** @@ -1023,4 +1023,4 @@ } }; -wp.themePluginEditor.l10n = window.wp.deprecateL10nObject( 'wp.themePluginEditor.l10n', wp.themePluginEditor.l10n ); +wp.themePluginEditor.l10n = window.wp.deprecateL10nObject( 'wp.themePluginEditor.l10n', wp.themePluginEditor.l10n, '5.5.0' );