diff --git a/wp-admin/includes/class-theme-upgrader.php b/wp-admin/includes/class-theme-upgrader.php
index 12bd4772919c..b1cf6778396b 100644
a
|
b
|
public function check_package( $source ) { |
538 | 538 | |
539 | 539 | // Check that the folder contains a valid theme. |
540 | 540 | $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit( WP_CONTENT_DIR ), $source ); |
541 | | if ( ! is_dir( $working_directory ) ) { // Sanity check, if the above fails, let's not prevent installation. |
| 541 | if ( ! is_dir( $working_directory ) ) { // Confidence check, if the above fails, let's not prevent installation. |
542 | 542 | return $source; |
543 | 543 | } |
544 | 544 | |