diff --git a/src/wp-admin/includes/class-wp-filesystem-direct.php b/src/wp-admin/includes/class-wp-filesystem-direct.php index f282c3b907..ce771cdabe 100644 --- a/src/wp-admin/includes/class-wp-filesystem-direct.php +++ b/src/wp-admin/includes/class-wp-filesystem-direct.php @@ -564,7 +564,7 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { $limit_file = false; } - if ( ! $this->is_dir( $path ) || ! $this->is_readable( $dir ) ) { + if ( ! $this->is_dir( $path ) || ! $this->is_readable( $path ) ) { return false; }