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'] ) {
@@ -293,7 +302,10 @@ if ( ! in_array( 'plugin_editor_notice', $dismissed_pointers, true ) ) :

-

+

+ + +

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
@@ -300,13 +309,16 @@ if ( ! in_array( 'theme_editor_notice', $dismissed_pointers, true ) ) : built in CSS editor.' ), + __( 'You appear to be making direct edits to your theme in the WordPress dashboard. We recommend that you don’t! Editing this code directly is dangerous, and can leave you unable to log back in to WordPress and undo changes. There’s no need to change your CSS here — you can edit and live preview CSS changes in WordPress’s built in CSS editor.' ), esc_url( add_query_arg( 'autofocus[section]', 'custom_css', admin_url( 'customize.php' ) ) ) ); ?>

-

+

+ + +