Make WordPress Core


Ignore:
Timestamp:
04/17/2023 04:59:57 PM (2 years ago)
Author:
SergeyBiryukov
Message:

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

Follow-up to [17189], [24623], [55642], [55652], [55653].

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r55642 r55654  
    56635663                foreach ( $enclosures as $enc ) {
    56645664                    // This method used to omit the trailing new line. #23219
    5665                     if ( rtrim( $enc, "\n" ) == rtrim( $encstring, "\n" ) ) {
     5665                    if ( rtrim( $enc, "\n" ) === rtrim( $encstring, "\n" ) ) {
    56665666                        $found = true;
    56675667                        break;
Note: See TracChangeset for help on using the changeset viewer.