Changeset 41876 for trunk/src/wp-admin/theme-editor.php
- Timestamp:
- 10/16/2017 05:58:07 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/theme-editor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-editor.php
r41865 r41876 298 298 } 299 299 ?> 300 <div id="file-editor-warning" class="notification-dialog-wrap file-editor-warning hide-if-no-js ">300 <div id="file-editor-warning" class="notification-dialog-wrap file-editor-warning hide-if-no-js hidden"> 301 301 <div class="notification-dialog-background"></div> 302 <div class="notification-dialog" role="dialog" aria-labelledby="file-editor-warning-title" tabindex="0">302 <div class="notification-dialog"> 303 303 <div class="file-editor-warning-content"> 304 <h1 id="file-editor-warning-title"><?php _e( 'Heads up!' ); ?></h1> 305 <p> 306 <?php 307 echo sprintf( 308 /* translators: %s is a link to Custom CSS section in the Customizer. */ 309 __( 'You appear to be making direct edits to your theme in the WordPress dashboard. We recommend that you don’t! Editing this code directly is dangerous, and can leave you unable to log back in to WordPress and undo changes. There’s no need to change your CSS here — you can edit and live preview CSS changes in WordPress’s <a href="%s">built in CSS editor</a>.' ), 310 esc_url( add_query_arg( 'autofocus[section]', 'custom_css', admin_url( 'customize.php' ) ) ) 311 ); 312 ?> 313 </p> 314 <p><?php _e( 'If you decide to go ahead with direct edits anyway, make sure to back up all your site’s files before making changes so you can restore a functional version if something goes wrong.' ); ?></p> 304 <div class="file-editor-warning-message"> 305 <h1><?php _e( 'Heads up!' ); ?></h1> 306 <p> 307 <?php 308 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’t! Editing this code directly is dangerous, and can leave you unable to log back in to WordPress and undo changes. There’s no need to change your CSS here — you can edit and live preview CSS changes in WordPress’s <a href="%s">built in CSS editor</a>.' ), 311 esc_url( add_query_arg( 'autofocus[section]', 'custom_css', admin_url( 'customize.php' ) ) ) 312 ); 313 ?> 314 </p> 315 <p><?php _e( 'If you decide to go ahead with direct edits anyway, make sure to back up all your site’s files before making changes so you can restore a functional version if something goes wrong.' ); ?></p> 316 </div> 315 317 <p> 316 318 <a class="button file-editor-warning-go-back" href="<?php echo esc_url( $return_url ); ?>"><?php _e( 'Go back' ); ?></a>
Note: See TracChangeset
for help on using the changeset viewer.