Filesystem API: Check correct variable in WP_Filesystem_Direct::dirlist() after [45611].

Props zinigor.
Fixes #47668. See #47632.

git-svn-id: https://develop.svn.wordpress.org/trunk@45613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-07-09 15:57:53 +00:00
parent acf6cabe24
commit 40d9fdf1f9

View File

@ -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;
}