Make WordPress Core


Ignore:
Timestamp:
03/21/2021 12:10:55 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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

See #52627.

File:
1 edited

Legend:

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

    r50151 r50557  
    121121     */
    122122    public function __construct( $skin = null ) {
    123         if ( null == $skin ) {
     123        if ( null === $skin ) {
    124124            $this->skin = new WP_Upgrader_Skin();
    125125        } else {
     
    505505            // Only one folder? Then we want its contents.
    506506            $source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] );
    507         } elseif ( count( $source_files ) == 0 ) {
     507        } elseif ( 0 === count( $source_files ) ) {
    508508            // There are no files?
    509509            return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] );
     
    774774        }
    775775
    776         $delete_package = ( $download != $options['package'] ); // Do not delete a "local" file.
     776        $delete_package = ( $download !== $options['package'] ); // Do not delete a "local" file.
    777777
    778778        // Unzips the file into a temporary directory.
Note: See TracChangeset for help on using the changeset viewer.