Skip to content

Commit 0aba11a

Browse files
I18N: Remove code from a translatable string in wp-includes/ms-default-constants.php.
This replaces the `VHOST` and `SUBDOMAIN_INSTALL` constant names in a message in `ms_subdomain_constants()` with placeholders, as they don't need to be translated. Follow-up to [36773]. Props weboccults, hztyfoon, pratiweb. Fixes #56216. git-svn-id: https://develop.svn.wordpress.org/trunk@53699 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5c041f5 commit 0aba11a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/wp-includes/ms-default-constants.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,21 @@ function ms_subdomain_constants() {
143143
'<code>wp-config.php</code>',
144144
'<code>is_subdomain_install()</code>'
145145
);
146+
146147
if ( $subdomain_error_warn ) {
147-
trigger_error( __( '<strong>Conflicting values for the constants VHOST and SUBDOMAIN_INSTALL.</strong> The value of SUBDOMAIN_INSTALL will be assumed to be your subdomain configuration setting.' ) . ' ' . $vhost_deprecated, E_USER_WARNING );
148+
trigger_error(
149+
sprintf(
150+
/* translators: 1: VHOST, 2: SUBDOMAIN_INSTALL */
151+
__( '<strong>Conflicting values for the constants %1$s and %2$s.</strong> The value of %2$s will be assumed to be your subdomain configuration setting.' ),
152+
'<code>VHOST</code>',
153+
'<code>SUBDOMAIN_INSTALL</code>'
154+
) . ' ' . $vhost_deprecated,
155+
E_USER_WARNING
156+
);
148157
} else {
149158
_deprecated_argument( 'define()', '3.0.0', $vhost_deprecated );
150159
}
160+
151161
return;
152162
}
153163

0 commit comments

Comments
 (0)