diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php index fc50aaf0ef..92fb5d6bb4 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -412,8 +412,8 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base { * Checks if a file or directory exists. * * @since 2.5.0 - * @since 6.1.0 Rewrite using ftp_rawlist, uses 'LIST' on FTP server - * takes file path or directory path as parameter. + * @since 6.1.0 Uses WP_Filesystem_FTPext::is_dir() to check for directory existence + * and ftp_rawlist() to check for file existence. * * @param string $file Path to file or directory. * @return bool Whether $file exists or not. @@ -510,7 +510,8 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base { * Gets the file size (in bytes). * * @since 2.5.0 - * @since 6.1.0 Update for proper return values. + * @since 6.1.0 Corrected the return value: while WP_Filesystem_Base::size() + * is documented to return false on failure, ftp_size() returns -1. * * @param string $file Path to file. * @return int Size of the file in bytes on success, -1 on failure. diff --git a/wp-admin/includes/class-wp-filesystem-ftpsockets.php b/wp-admin/includes/class-wp-filesystem-ftpsockets.php index d0fc128a1b..cb92656aad 100644 --- a/wp-admin/includes/class-wp-filesystem-ftpsockets.php +++ b/wp-admin/includes/class-wp-filesystem-ftpsockets.php @@ -414,7 +414,8 @@ class WP_Filesystem_ftpsockets extends WP_Filesystem_Base { * Checks if a file or directory exists. * * @since 2.5.0 - * @since 6.1.0 Rewrite using file size. + * @since 6.1.0 Uses WP_Filesystem_ftpsockets::is_dir() to check for directory existence + * and file size to check for file existence. * * @param string $file Path to file or directory. * @return bool Whether $file exists or not. diff --git a/wp-includes/version.php b/wp-includes/version.php index 012524448a..31a8e2250b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53861'; +$wp_version = '6.1-alpha-53862'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.