Make WordPress Core


Ignore:
Timestamp:
04/05/2021 10:36:17 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/includes/class-wp-filesystem-*.php.

See #52627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php

    r49936 r50657  
    211211        $bytes_written = fwrite( $temphandle, $contents );
    212212
    213         if ( false === $bytes_written || strlen( $contents ) != $bytes_written ) {
     213        if ( false === $bytes_written || strlen( $contents ) !== $bytes_written ) {
    214214            fclose( $temphandle );
    215215            unlink( $tempfile );
     
    651651            }
    652652
    653             if ( $limit_file && $struc['name'] != $limit_file ) {
     653            if ( $limit_file && $struc['name'] !== $limit_file ) {
    654654                continue;
    655655            }
Note: See TracChangeset for help on using the changeset viewer.