From 72015767571449c304c4df0ad7366588a46c1125 Mon Sep 17 00:00:00 2001 From: Mel Choyce Date: Tue, 24 Oct 2017 23:34:31 +0000 Subject: [PATCH] Code Editors: Add a persistent notification on CSS files, encouraging people to use the CSS panel in the Customizer instead of editing their CSS files directly. Props helen, westonruter, nic.bertino, michelleweber. Fixes #42100. git-svn-id: https://develop.svn.wordpress.org/trunk@42013 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/theme-editor.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/wp-admin/theme-editor.php b/src/wp-admin/theme-editor.php index e3a9219c33..b664cec905 100644 --- a/src/wp-admin/theme-editor.php +++ b/src/wp-admin/theme-editor.php @@ -185,6 +185,20 @@ if ( $file_description != $file_show ) {
get_error_message() ? $edit_error->get_error_message() : $edit_error->get_error_code() ); ?>
+ +
+

+

+ built-in CSS editor.' ), + esc_url( add_query_arg( 'autofocus[section]', 'custom_css', admin_url( 'customize.php' ) ) ) + ); + ?> +

+
+