Themes: Link to an updated documentation on child themes on developer.wordpress.org, instead of Codex.
Props man4toman. See #46450. git-svn-id: https://develop.svn.wordpress.org/trunk@45080 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a795928e3b
commit
f6dadb3738
@ -241,8 +241,9 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||
<?php
|
||||
if ( $theme->parent() ) {
|
||||
printf(
|
||||
/* translators: %s: link to documentation on child themes */
|
||||
' <p class="howto">' . __( 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.' ) . '</p>',
|
||||
__( 'https://codex.wordpress.org/Child_Themes' ),
|
||||
__( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ),
|
||||
$theme->parent()->display( 'Name' )
|
||||
);
|
||||
}
|
||||
|
@ -37,8 +37,11 @@ get_current_screen()->add_help_tab(
|
||||
'</ul>' .
|
||||
'<p>' . __( 'After typing in your edits, click Update File.' ) . '</p>' .
|
||||
'<p>' . __( '<strong>Advice:</strong> Think very carefully about your site crashing if you are live-editing the theme currently in use.' ) . '</p>' .
|
||||
/* translators: %s: link to codex article about child themes */
|
||||
'<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>' .
|
||||
'<p>' . sprintf(
|
||||
/* translators: %s: link to documentation on child themes */
|
||||
__( '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://developer.wordpress.org/themes/advanced-topics/child-themes/' )
|
||||
) . '</p>' .
|
||||
( is_network_admin() ? '<p>' . __( 'Any edits to files from this screen will be reflected on all sites in the network.' ) . '</p>' : '' ),
|
||||
)
|
||||
);
|
||||
@ -341,9 +344,9 @@ if ( ! in_array( 'theme_editor_notice', $dismissed_pointers, true ) ) :
|
||||
<p>
|
||||
<?php
|
||||
echo sprintf(
|
||||
/* translators: %s: Codex URL */
|
||||
/* translators: %s: link to documentation on child themes */
|
||||
__( '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 <a href="%s">making a child theme</a>.' ),
|
||||
esc_url( __( 'https://codex.wordpress.org/Child_Themes' ) )
|
||||
esc_url( __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ) )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
@ -387,7 +387,15 @@ function list_theme_updates() {
|
||||
?>
|
||||
<h2><?php _e( 'Themes' ); ?></h2>
|
||||
<p><?php _e( 'The following themes have new versions available. Check the ones you want to update and then click “Update Themes”.' ); ?></p>
|
||||
<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>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: link to documentation on child themes */
|
||||
__( '<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://developer.wordpress.org/themes/advanced-topics/child-themes/' )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<form method="post" action="<?php echo esc_url( $form_action ); ?>" name="upgrade-themes" class="upgrade">
|
||||
<?php wp_nonce_field( 'upgrade-core' ); ?>
|
||||
<p><input id="upgrade-themes" class="button" type="submit" value="<?php esc_attr_e( 'Update Themes' ); ?>" name="upgrade" /></p>
|
||||
|
@ -289,10 +289,10 @@ final class WP_Theme implements ArrayAccess {
|
||||
$this->template = $this->stylesheet;
|
||||
if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet . '/index.php' ) ) {
|
||||
$error_message = sprintf(
|
||||
/* translators: 1: index.php, 2: Codex URL, 3: style.css */
|
||||
/* translators: 1: index.php, 2: link to documentation, 3: style.css */
|
||||
__( '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.' ),
|
||||
'<code>index.php</code>',
|
||||
__( 'https://codex.wordpress.org/Child_Themes' ),
|
||||
__( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ),
|
||||
'<code>style.css</code>'
|
||||
);
|
||||
$this->errors = new WP_Error( 'theme_no_index', $error_message );
|
||||
|
Loading…
Reference in New Issue
Block a user