diff --git a/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php b/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php index ff0b882414..95e075c25d 100644 --- a/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php +++ b/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php @@ -470,9 +470,10 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base { * * @param string $path * @param bool $recursive + * @return bool */ public function rmdir($path, $recursive = false ) { - $this->delete($path, $recursive); + return $this->delete($path, $recursive); } /**