mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user