diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css index c4444111fc..5f49475f5f 100644 --- a/src/wp-admin/css/edit.css +++ b/src/wp-admin/css/edit.css @@ -529,7 +529,8 @@ span.wp-media-buttons-icon:before { margin: 25px; } -#post-lock-dialog .post-locked-message a.button { +#post-lock-dialog .post-locked-message a.button, +#file-editor-warning .button { margin-right: 10px; } diff --git a/src/wp-admin/js/theme-plugin-editor.js b/src/wp-admin/js/theme-plugin-editor.js index 2be828728b..16f9b95b3c 100644 --- a/src/wp-admin/js/theme-plugin-editor.js +++ b/src/wp-admin/js/theme-plugin-editor.js @@ -52,7 +52,7 @@ wp.themePluginEditor = (function( $ ) { if ( component.warning.length > 0 ) { $( 'body' ).addClass( 'modal-open' ); - component.warning.find( '.file-editor-warning-dismiss' ).focus(); + component.warning.find( '.file-editor-warning-go-back' ).focus(); component.warning.on( 'click', '.file-editor-warning-dismiss', component.dismissWarning ); } diff --git a/src/wp-admin/plugin-editor.php b/src/wp-admin/plugin-editor.php index 200ebe8f5d..07de92ca09 100644 --- a/src/wp-admin/plugin-editor.php +++ b/src/wp-admin/plugin-editor.php @@ -285,6 +285,15 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] ) {
diff --git a/src/wp-admin/theme-editor.php b/src/wp-admin/theme-editor.php index e275af1fda..0487e2d660 100644 --- a/src/wp-admin/theme-editor.php +++ b/src/wp-admin/theme-editor.php @@ -290,6 +290,15 @@ endif; // $error