mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 09:57:38 +01:00
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:
parent
d3d78e755b
commit
d72f4e0e48
@ -120,7 +120,7 @@ class WP_Upgrader {
|
|||||||
* instance.
|
* instance.
|
||||||
*/
|
*/
|
||||||
public function __construct( $skin = null ) {
|
public function __construct( $skin = null ) {
|
||||||
if ( null == $skin ) {
|
if ( null === $skin ) {
|
||||||
$this->skin = new WP_Upgrader_Skin();
|
$this->skin = new WP_Upgrader_Skin();
|
||||||
} else {
|
} else {
|
||||||
$this->skin = $skin;
|
$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] . '/' ) ) {
|
if ( 1 === count( $source_files ) && $wp_filesystem->is_dir( trailingslashit( $args['source'] ) . $source_files[0] . '/' ) ) {
|
||||||
// Only one folder? Then we want its contents.
|
// Only one folder? Then we want its contents.
|
||||||
$source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] );
|
$source = trailingslashit( $args['source'] ) . trailingslashit( $source_files[0] );
|
||||||
} elseif ( count( $source_files ) == 0 ) {
|
} elseif ( 0 === count( $source_files ) ) {
|
||||||
// There are no files?
|
// There are no files?
|
||||||
return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] );
|
return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] );
|
||||||
} else {
|
} else {
|
||||||
@ -773,7 +773,7 @@ class WP_Upgrader {
|
|||||||
return $download;
|
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.
|
// Unzips the file into a temporary directory.
|
||||||
$working_dir = $this->unpack_package( $download, $delete_package );
|
$working_dir = $this->unpack_package( $download, $delete_package );
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user