Make WordPress Core


Ignore:
Timestamp:
05/23/2020 11:36:36 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison for count() calls.

See #49542.

File:
1 edited

Legend:

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

    r47808 r47848  
    499499
    500500        // Locate which directory to copy to the new folder. This is based on the actual folder holding the files.
    501         if ( 1 == count( $source_files ) && $wp_filesystem->is_dir( trailingslashit( $args['source'] ) . $source_files[0] . '/' ) ) {
     501        if ( 1 === count( $source_files ) && $wp_filesystem->is_dir( trailingslashit( $args['source'] ) . $source_files[0] . '/' ) ) {
    502502            // Only one folder? Then we want its contents.
    503503            $source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] );
Note: See TracChangeset for help on using the changeset viewer.