I18N: Move code out of a translatable string in `WP_Theme::__construct()`.
Props kapilpaul, azouamauriac, SergeyBiryukov. Fixes #55405. Built from https://develop.svn.wordpress.org/trunk@53190 git-svn-id: http://core.svn.wordpress.org/trunk@52779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
407e802048
commit
36708d062c
|
@ -345,11 +345,12 @@ final class WP_Theme implements ArrayAccess {
|
||||||
&& ! file_exists( $theme_path . '/index.php' )
|
&& ! file_exists( $theme_path . '/index.php' )
|
||||||
) {
|
) {
|
||||||
$error_message = sprintf(
|
$error_message = sprintf(
|
||||||
/* translators: 1: templates/index.html, 2: index.php, 3: Documentation URL, 4: style.css */
|
/* translators: 1: templates/index.html, 2: index.php, 3: Documentation URL, 4: Template, 5: style.css */
|
||||||
__( 'Template is missing. Standalone themes need to have a %1$s or %2$s template file. <a href="%3$s">Child themes</a> need to have a Template header in the %4$s stylesheet.' ),
|
__( 'Template is missing. Standalone themes need to have a %1$s or %2$s template file. <a href="%3$s">Child themes</a> need to have a %4$s header in the %5$s stylesheet.' ),
|
||||||
'<code>templates/index.html</code>',
|
'<code>templates/index.html</code>',
|
||||||
'<code>index.php</code>',
|
'<code>index.php</code>',
|
||||||
__( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ),
|
__( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ),
|
||||||
|
'<code>Template</code>',
|
||||||
'<code>style.css</code>'
|
'<code>style.css</code>'
|
||||||
);
|
);
|
||||||
$this->errors = new WP_Error( 'theme_no_index', $error_message );
|
$this->errors = new WP_Error( 'theme_no_index', $error_message );
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.0-beta1-53189';
|
$wp_version = '6.0-beta1-53190';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue