diff --git a/src/wp-admin/theme-editor.php b/src/wp-admin/theme-editor.php index 186d54fbbe..fa06f574f3 100644 --- a/src/wp-admin/theme-editor.php +++ b/src/wp-admin/theme-editor.php @@ -344,13 +344,20 @@ if ( ! in_array( 'theme_editor_notice', $dismissed_pointers, true ) ) :
making a child theme.' ), - esc_url( __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ) ) - ); + _e( 'You appear to be making direct edits to your theme in the WordPress dashboard. We recommend that you don’t! Editing your theme directly could break your site and your changes may be lost in future updates.' ); ?>
+ parent() ) { + echo ''; + echo sprintf( + /* translators: %s: link to documentation on child themes */ + __( 'If you need to tweak more than your theme’s CSS, you might want to try making a child theme.' ), + esc_url( __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ) ) + ); + echo '
'; + } + ?>