Make WordPress Core


Ignore:
Timestamp:
07/14/2022 01:33:12 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-default-constants.php

    r51630 r53699  
    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    }
Note: See TracChangeset for help on using the changeset viewer.