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

See #52627.
Built from https://develop.svn.wordpress.org/trunk@50557


git-svn-id: http://core.svn.wordpress.org/trunk@50170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-03-21 12:12:07 +00:00
parent d3d78e755b
commit d72f4e0e48
2 changed files with 4 additions and 4 deletions

View File

@ -120,7 +120,7 @@ class WP_Upgrader {
* instance.
*/
public function __construct( $skin = null ) {
if ( null == $skin ) {
if ( null === $skin ) {
$this->skin = new WP_Upgrader_Skin();
} else {
$this->skin = $skin;
@ -504,7 +504,7 @@ class WP_Upgrader {
if ( 1 === count( $source_files ) && $wp_filesystem->is_dir( trailingslashit( $args['source'] ) . $source_files[0] . '/' ) ) {
// Only one folder? Then we want its contents.
$source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] );
} elseif ( count( $source_files ) == 0 ) {
} elseif ( 0 === count( $source_files ) ) {
// There are no files?
return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] );
} else {
@ -773,7 +773,7 @@ class WP_Upgrader {
return $download;
}
$delete_package = ( $download != $options['package'] ); // Do not delete a "local" file.
$delete_package = ( $download !== $options['package'] ); // Do not delete a "local" file.
// Unzips the file into a temporary directory.
$working_dir = $this->unpack_package( $download, $delete_package );

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-alpha-50556';
$wp_version = '5.8-alpha-50557';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.