Make WordPress Core

Ticket #56216: 56216.diff

File 56216.diff, 1.6 KB (added by weboccults, 4 years ago)

Patch created with suggested edits

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

    From 024d1bd45023d3ba3369e9668ce3d4ca9ec5d21b Mon Sep 17 00:00:00 2001
    From: Pratiksha <prati.weboccult@gmail.com>
    Date: Thu, 14 Jul 2022 14:11:32 +0530
    Subject: [PATCH] Removed some code from a translatable string
    
    ---
     src/wp-includes/ms-default-constants.php | 11 ++++++++++-
     1 file changed, 10 insertions(+), 1 deletion(-)
    
    diff --git a/src/wp-includes/ms-default-constants.php b/src/wp-includes/ms-default-constants.php
    index 016ed437b7..ba50b892cd 100644
    a b function ms_subdomain_constants() {  
    144144                        '<code>is_subdomain_install()</code>'
    145145                );
    146146                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 );
     147            /* translators: 1: VHOST, 2: SUBDOMAIN_INSTALL */
     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                }