Make WordPress Core

Changeset 45080


Ignore:
Timestamp:
04/01/2019 11:54:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Themes: Link to an updated documentation on child themes on developer.wordpress.org, instead of Codex.

Props man4toman.
See #46450.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-themes-list-table.php

    r43571 r45080  
    242242                if ( $theme->parent() ) {
    243243                    printf(
     244                        /* translators: %s: link to documentation on child themes */
    244245                        ' <p class="howto">' . __( 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.' ) . '</p>',
    245                         __( 'https://codex.wordpress.org/Child_Themes' ),
     246                        __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ),
    246247                        $theme->parent()->display( 'Name' )
    247248                    );
  • trunk/src/wp-admin/theme-editor.php

    r44811 r45080  
    2727        'title'   => __( 'Overview' ),
    2828        'content' =>
    29                  '<p>' . __( 'You can use the theme editor to edit the individual CSS and PHP files which make up your theme.' ) . '</p>' .
    30                  '<p>' . __( 'Begin by choosing a theme to edit from the dropdown menu and clicking the Select button. A list then appears of the theme&#8217;s template files. Clicking once on any file name causes the file to appear in the large Editor box.' ) . '</p>' .
    31                  '<p>' . __( 'For PHP files, you can use the Documentation dropdown to select from functions recognized in that file. Look Up takes you to a web page with reference material about that particular function.' ) . '</p>' .
    32                  '<p id="editor-keyboard-trap-help-1">' . __( 'When using a keyboard to navigate:' ) . '</p>' .
    33                  '<ul>' .
    34                  '<li id="editor-keyboard-trap-help-2">' . __( 'In the editing area, the Tab key enters a tab character.' ) . '</li>' .
    35                  '<li id="editor-keyboard-trap-help-3">' . __( 'To move away from this area, press the Esc key followed by the Tab key.' ) . '</li>' .
    36                  '<li id="editor-keyboard-trap-help-4">' . __( 'Screen reader users: when in forms mode, you may need to press the Esc key twice.' ) . '</li>' .
    37                  '</ul>' .
    38                  '<p>' . __( 'After typing in your edits, click Update File.' ) . '</p>' .
    39                  '<p>' . __( '<strong>Advice:</strong> Think very carefully about your site crashing if you are live-editing the theme currently in use.' ) . '</p>' .
    40                  /* 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>' .
    42                  ( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ),
     29                '<p>' . __( 'You can use the theme editor to edit the individual CSS and PHP files which make up your theme.' ) . '</p>' .
     30                '<p>' . __( 'Begin by choosing a theme to edit from the dropdown menu and clicking the Select button. A list then appears of the theme&#8217;s template files. Clicking once on any file name causes the file to appear in the large Editor box.' ) . '</p>' .
     31                '<p>' . __( 'For PHP files, you can use the Documentation dropdown to select from functions recognized in that file. Look Up takes you to a web page with reference material about that particular function.' ) . '</p>' .
     32                '<p id="editor-keyboard-trap-help-1">' . __( 'When using a keyboard to navigate:' ) . '</p>' .
     33                '<ul>' .
     34                '<li id="editor-keyboard-trap-help-2">' . __( 'In the editing area, the Tab key enters a tab character.' ) . '</li>' .
     35                '<li id="editor-keyboard-trap-help-3">' . __( 'To move away from this area, press the Esc key followed by the Tab key.' ) . '</li>' .
     36                '<li id="editor-keyboard-trap-help-4">' . __( 'Screen reader users: when in forms mode, you may need to press the Esc key twice.' ) . '</li>' .
     37                '</ul>' .
     38                '<p>' . __( 'After typing in your edits, click Update File.' ) . '</p>' .
     39                '<p>' . __( '<strong>Advice:</strong> Think very carefully about your site crashing if you are live-editing the theme currently in use.' ) . '</p>' .
     40                '<p>' . sprintf(
     41                    /* translators: %s: link to documentation on child themes */
     42                    __( '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.' ),
     43                    __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' )
     44                ) . '</p>' .
     45                ( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ),
    4346    )
    4447);
     
    342345                    <?php
    343346                    echo sprintf(
    344                         /* translators: %s: Codex URL */
     347                        /* translators: %s: link to documentation on child themes */
    345348                        __( '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>.' ),
    346                         esc_url( __( 'https://codex.wordpress.org/Child_Themes' ) )
     349                        esc_url( __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ) )
    347350                    );
    348351                    ?>
  • trunk/src/wp-admin/update-core.php

    r44939 r45080  
    388388<h2><?php _e( 'Themes' ); ?></h2>
    389389<p><?php _e( 'The following themes have new versions available. Check the ones you want to update and then click &#8220;Update Themes&#8221;.' ); ?></p>
    390 <p><?php printf( __( '<strong>Please Note:</strong> Any customizations you have made to theme files will be lost. Please consider using <a href="%s">child themes</a> for modifications.' ), __( 'https://codex.wordpress.org/Child_Themes' ) ); ?></p>
     390<p>
     391    <?php
     392    printf(
     393        /* translators: %s: link to documentation on child themes */
     394        __( '<strong>Please Note:</strong> Any customizations you have made to theme files will be lost. Please consider using <a href="%s">child themes</a> for modifications.' ),
     395        __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' )
     396    );
     397    ?>
     398</p>
    391399<form method="post" action="<?php echo esc_url( $form_action ); ?>" name="upgrade-themes" class="upgrade">
    392400    <?php wp_nonce_field( 'upgrade-core' ); ?>
  • trunk/src/wp-includes/class-wp-theme.php

    r44973 r45080  
    290290            if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet . '/index.php' ) ) {
    291291                $error_message = sprintf(
    292                     /* translators: 1: index.php, 2: Codex URL, 3: style.css */
     292                    /* translators: 1: index.php, 2: link to documentation, 3: style.css */
    293293                    __( 'Template is missing. Standalone themes need to have a %1$s template file. <a href="%2$s">Child themes</a> need to have a Template header in the %3$s stylesheet.' ),
    294294                    '<code>index.php</code>',
    295                     __( 'https://codex.wordpress.org/Child_Themes' ),
     295                    __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ),
    296296                    '<code>style.css</code>'
    297297                );
Note: See TracChangeset for help on using the changeset viewer.