diff --git a/wp-admin/includes/class-plugin-upgrader.php b/wp-admin/includes/class-plugin-upgrader.php
index 02743f64561e..091cfebc188f 100644
|
a
|
b
|
public function check_package( $source ) {
|
| 472 | 472 | } |
| 473 | 473 | |
| 474 | 474 | $working_directory = str_replace( $wp_filesystem->wp_content_dir(), trailingslashit( WP_CONTENT_DIR ), $source ); |
| 475 | | if ( ! is_dir( $working_directory ) ) { // Sanity check, if the above fails, let's not prevent installation. |
| | 475 | if ( ! is_dir( $working_directory ) ) { // Confidence check, if the above fails, let's not prevent installation. |
| 476 | 476 | return $source; |
| 477 | 477 | } |
| 478 | 478 | |