Make WordPress Core

Ticket #42100: 42100.5.diff

File 42100.5.diff, 972 bytes (added by westonruter, 7 years ago)
  • src/wp-admin/theme-editor.php

    diff --git src/wp-admin/theme-editor.php src/wp-admin/theme-editor.php
    index e3a9219c33..521c25244b 100644
    if ( $file_description != $file_show ) { 
    185185                <pre><?php echo esc_html( $edit_error->get_error_message() ? $edit_error->get_error_message() : $edit_error->get_error_code() ); ?></pre>
    186186        </div>
    187187<?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&#8217;s no need to change your CSS here &mdash; 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; ?>
    188201
    189202<div class="fileedit-sub">
    190203<div class="alignleft">