Make WordPress Core


Ignore:
Timestamp:
04/16/2023 10:46:17 AM (3 years ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [3606], [10738], [33359], [55642], [55652].

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

File:
1 edited

Legend:

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

    r55652 r55653  
    800800        }
    801801        if ( '"' === $quote || "'" === $quote ) {
    802             if ( substr( $value, -1 ) != $quote ) {
     802            if ( substr( $value, -1 ) !== $quote ) {
    803803                return '';
    804804            }
Note: See TracChangeset for help on using the changeset viewer.