Make WordPress Core

Changeset 53190


Ignore:
Timestamp:
04/16/2022 12:28:17 AM (5 years ago)
Author:
SergeyBiryukov
Message:

I18N: Move code out of a translatable string in WP_Theme::__construct().

Props kapilpaul, azouamauriac, SergeyBiryukov.
Fixes #55405.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme.php

    r53118 r53190  
    346346                        ) {
    347347                                $error_message = sprintf(
    348                                         /* translators: 1: templates/index.html, 2: index.php, 3: Documentation URL, 4: style.css */
    349                                         __( '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.' ),
     348                                        /* translators: 1: templates/index.html, 2: index.php, 3: Documentation URL, 4: Template, 5: style.css */
     349                                        __( '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.' ),
    350350                                        '<code>templates/index.html</code>',
    351351                                        '<code>index.php</code>',
    352352                                        __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ),
     353                                        '<code>Template</code>',
    353354                                        '<code>style.css</code>'
    354355                                );
Note: See TracChangeset for help on using the changeset viewer.