Ticket #42100: 42100.3.diff
File 42100.3.diff, 3.4 KB (added by , 7 years ago) |
---|
-
src/wp-admin/plugin-editor.php
298 298 <div class="file-editor-warning-content"> 299 299 <div class="file-editor-warning-message"> 300 300 <h1><?php _e( 'Heads up!' ); ?></h1> 301 <p><?php _e( 'You appear to be making direct edits to your plugin in the WordPress dashboard. We recommend that you don’t! Editing plugins directly may introduce incompatibilities that break your theme or other plugins, and can leave you unable to log back in to WordPress and undo changes.' ); ?></p>302 <p><?php _e( 'If you absolutely have to edit this plugin, create a copy with a new name and hang on to the original version, so you can re-enable a functional version if something goes wrong.' ); ?></p>301 <p><?php _e( 'You appear to be making direct edits to your plugin in the WordPress dashboard. We recommend that you don’t! Editing plugins directly may introduce incompatibilities that break your site and your changes may be lost in future updates.' ); ?></p> 302 <p><?php _e( 'If you absolutely have to edit this plugin, use a file manager to create a copy with a new name and hang on to the original, so you can re-enable a functional version if something goes wrong.' ); ?></p> 303 303 </div> 304 304 <p> 305 305 <a class="button file-editor-warning-go-back" href="<?php echo esc_url( $return_url ); ?>"><?php _e( 'Go back' ); ?></a> -
src/wp-admin/theme-editor.php
306 306 <p> 307 307 <?php 308 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' ) ))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’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’s CSS, you might want to try your hand at <a href="%s">making a child theme</a>.' ), 311 esc_url( 'https://codex.wordpress.org/Child_Themes' ) 312 312 ); 313 313 ?> 314 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> 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, so you can re-enable a functional version if something goes wrong.' ); ?></p> 316 316 317 </div> 317 318 <p> 318 319 <a class="button file-editor-warning-go-back" href="<?php echo esc_url( $return_url ); ?>"><?php _e( 'Go back' ); ?></a>