diff --git src/wp-admin/theme-editor.php src/wp-admin/theme-editor.php
index e3a9219c33..521c25244b 100644
|
|
if ( $file_description != $file_show ) { |
185 | 185 | <pre><?php echo esc_html( $edit_error->get_error_message() ? $edit_error->get_error_message() : $edit_error->get_error_code() ); ?></pre> |
186 | 186 | </div> |
187 | 187 | <?php endif; ?> |
| 188 | <?php if ( preg_match( '/\.css$/', $file ) ) : ?> |
| 189 | <div id="message" class="notice-info notice"> |
| 190 | <p> |
| 191 | <?php |
| 192 | echo sprintf( |
| 193 | /* translators: %s is a link to Custom CSS section in the Customizer. */ |
| 194 | __( 'There’s no need to change your CSS here — you can edit and live preview CSS changes in the <a href="%s">built in CSS editor</a>.' ), |
| 195 | esc_url( add_query_arg( 'autofocus[section]', 'custom_css', admin_url( 'customize.php' ) ) ) |
| 196 | ); |
| 197 | ?> |
| 198 | </p> |
| 199 | </div> |
| 200 | <?php endif; ?> |
188 | 201 | |
189 | 202 | <div class="fileedit-sub"> |
190 | 203 | <div class="alignleft"> |