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:
Sergey Biryukov
2019-04-01 11:54:23 +00:00
parent a795928e3b
commit f6dadb3738
4 changed files with 32 additions and 20 deletions
+2 -2
View File
@@ -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 );