Changeset 50557 for trunk/src/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 03/21/2021 12:10:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r50151 r50557 121 121 */ 122 122 public function __construct( $skin = null ) { 123 if ( null == $skin ) {123 if ( null === $skin ) { 124 124 $this->skin = new WP_Upgrader_Skin(); 125 125 } else { … … 505 505 // Only one folder? Then we want its contents. 506 506 $source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] ); 507 } elseif ( count( $source_files ) == 0) {507 } elseif ( 0 === count( $source_files ) ) { 508 508 // There are no files? 509 509 return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] ); … … 774 774 } 775 775 776 $delete_package = ( $download != $options['package'] ); // Do not delete a "local" file.776 $delete_package = ( $download !== $options['package'] ); // Do not delete a "local" file. 777 777 778 778 // Unzips the file into a temporary directory.
Note: See TracChangeset
for help on using the changeset viewer.