Make WordPress Core


Ignore:
Timestamp:
10/24/2017 06:46:26 PM (7 years ago)
Author:
melchoyce
Message:

Code Editors: Update copy in warning modals.

Props helen.
See #42100.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/theme-editor.php

    r41876 r41996  
    307307                    <?php
    308308                    echo sprintf(
    309                         /* translators: %s is a link to Custom CSS section in the Customizer. */
    310                         __( 'You appear to be making direct edits to your theme in the WordPress dashboard. We recommend that you don&#8217;t! Editing this code directly is dangerous, and can leave you unable to log back in to WordPress and undo changes. There&#8217;s no need to change your CSS here &mdash; you can edit and live preview CSS changes in WordPress&#8217;s <a href="%s">built in CSS editor</a>.' ),
    311                         esc_url( add_query_arg( 'autofocus[section]', 'custom_css', admin_url( 'customize.php' ) ) )
     309                        /* translators: %s: Codex URL */
     310                        __( 'You appear to be making direct edits to your theme in the WordPress dashboard. We recommend that you don&#8217;t! Editing your theme directly could break your site and your changes may be lost in future updates. If you need to tweak more than your theme&#8217;s CSS, you might want to try <a href="%s">making a child theme</a>.' ),
     311                        esc_url( 'https://codex.wordpress.org/Child_Themes' )
    312312                    );
    313313                    ?>
    314314                </p>
    315                 <p><?php _e( 'If you decide to go ahead with direct edits anyway, make sure to back up all your site&#8217;s files before making changes so you can restore a functional version if something goes wrong.' ); ?></p>
     315                <p><?php _e( 'If you decide to go ahead with direct edits anyway, use a file manager to create a copy with a new name and hang on to the original. That way, you can re-enable a functional version if something goes wrong.' ); ?></p>
     316               
    316317            </div>
    317318            <p>
Note: See TracChangeset for help on using the changeset viewer.