Make WordPress Core


Ignore:
Timestamp:
09/16/2023 06:48:59 AM (15 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove extra parentheses in a few str_contains() conditionals.

Follow-up to [55988].

Props Cybr.
See #58831.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-mail.php

    r55988 r56596  
    108108                $content_transfer_encoding = $content_transfer_encoding[0];
    109109            }
    110             if ( ( 'multipart/alternative' === $content_type ) && ( str_contains( $line, 'boundary="' ) ) && ( '' === $boundary ) ) {
     110            if ( 'multipart/alternative' === $content_type && str_contains( $line, 'boundary="' ) && '' === $boundary ) {
    111111                $boundary = trim( $line );
    112112                $boundary = explode( '"', $boundary );
Note: See TracChangeset for help on using the changeset viewer.