Make WordPress Core


Ignore:
Timestamp:
08/18/2021 02:07:17 PM (3 years ago)
Author:
SergeyBiryukov
Message:

External Libraries: Restore the phpcs:ignore statements in PHPMailer.

These are necessary for a passing PHP Compatibility scan.

Follow-up to [48045], [51634].

See #53953.

File:
1 edited

Legend:

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

    r51634 r51635  
    859859    {
    860860        //Check overloading of mail function to avoid double-encoding
    861         if (ini_get('mbstring.func_overload') & 1) {
     861        if (ini_get('mbstring.func_overload') & 1) { // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecated
    862862            $subject = $this->secureHeader($subject);
    863863        } else {
     
    14551455                } elseif (defined('INTL_IDNA_VARIANT_2003')) {
    14561456                    //Fall back to this old, deprecated/removed encoding
     1457                    // phpcs:ignore PHPCompatibility.Constants.RemovedConstants.intl_idna_variant_2003Deprecated
    14571458                    $punycode = idn_to_ascii($domain, $errorcode, \INTL_IDNA_VARIANT_2003);
    14581459                } else {
    14591460                    //Fall back to a default we don't know about
     1461                    // phpcs:ignore PHPCompatibility.ParameterValues.NewIDNVariantDefault.NotSet
    14601462                    $punycode = idn_to_ascii($domain, $errorcode);
    14611463                }
Note: See TracChangeset for help on using the changeset viewer.