From 29e515596911acd98a1a1c48702b239f91e69775 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 9 Jul 2019 15:58:57 +0000 Subject: [PATCH] Filesystem API: Check correct variable in `WP_Filesystem_Direct::dirlist()` after [45611]. Props zinigor. Fixes #47668. See #47632. Built from https://develop.svn.wordpress.org/trunk@45613 git-svn-id: http://core.svn.wordpress.org/trunk@45424 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-filesystem-direct.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-filesystem-direct.php b/wp-admin/includes/class-wp-filesystem-direct.php index f282c3b907..ce771cdabe 100644 --- a/wp-admin/includes/class-wp-filesystem-direct.php +++ b/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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 5835a1a8b1..470ea1b02a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45612'; +$wp_version = '5.3-alpha-45613'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.