Make WordPress Core

Ticket #44007: 44007.2.diff

File 44007.2.diff, 2.2 KB (added by audrasjb, 6 years ago)

adding 2 target blank and some informations about liks opening in a new window

  • src/wp-admin/theme-editor.php

    diff --git a/src/wp-admin/theme-editor.php b/src/wp-admin/theme-editor.php
    index 5fdb881..4d9cd42 100644
    a b get_current_screen()->add_help_tab( 
    3838                                 '<p>' . __( 'After typing in your edits, click Update File.' ) . '</p>' .
    3939                                 '<p>' . __( '<strong>Advice:</strong> think very carefully about your site crashing if you are live-editing the theme currently in use.' ) . '</p>' .
    4040                                 /* translators: %s: link to codex article about child themes */
    41                                  '<p>' . sprintf( __( 'Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a <a href="%s">child theme</a> instead.' ), __( 'https://codex.wordpress.org/Child_Themes' ) ) . '</p>' .
     41                                 '<p>' . sprintf( __( 'Upgrading to a newer version of the same theme will override changes made here. To avoid this, consider creating a <a href="%s" target="_blank">child theme (will open in a new window)</a> instead.' ), __( 'https://codex.wordpress.org/Child_Themes' ) ) . '</p>' .
    4242                                 ( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ),
    4343        )
    4444);
    if ( ! in_array( 'theme_editor_notice', $dismissed_pointers, true ) ) : 
    342342                                        <?php
    343343                                        echo sprintf(
    344344                                                /* translators: %s: Codex URL */
    345                                                 __( '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>.' ),
     345                                                __( '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" target="_blank">making a child theme (will open in a new window)</a>.' ),
    346346                                                esc_url( __( 'https://codex.wordpress.org/Child_Themes' ) )
    347347                                        );
    348348                                        ?>