Make WordPress Core


Ignore:
Timestamp:
04/22/2023 03:17:47 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison where strtolower() is involved.

Follow-up to [649], [7736], [18821], [19444], [20886], [20893], [23303], [55642], [55652], [55653], [55654].

Props aristath, poena, afercia, SergeyBiryukov.
See #57839.

File:
1 edited

Legend:

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

    r55653 r55677  
    16411641             */
    16421642
    1643             if ( strtolower( $checkvalue ) != $vless ) {
     1643            if ( strtolower( $checkvalue ) !== $vless ) {
    16441644                $ok = false;
    16451645            }
     
    18471847    $allowed = false;
    18481848    foreach ( (array) $allowed_protocols as $one_protocol ) {
    1849         if ( strtolower( $one_protocol ) == $scheme ) {
     1849        if ( strtolower( $one_protocol ) === $scheme ) {
    18501850            $allowed = true;
    18511851            break;
Note: See TracChangeset for help on using the changeset viewer.