Sergey Biryukov
f8c9068b79
Upgrade/Install: Make WP_Filesystem_FTPext::size() return false on failure.
...
While `WP_Filesystem_Base::size()` is documented to return `false` on failure, `ftp_size()` returns -1, and the method documentation was recently updated to reflect that.
This commit restores the previous `@return` tag and corrects the actual return value instead, to bring consistency with all the other `WP_Filesystem_*::size()` methods:
* `WP_Filesystem_Base::size()`
* `WP_Filesystem_Direct::size()`
* `WP_Filesystem_ftpsockets::size()`
* `WP_Filesystem_SSH2::size()`
{{{
@return int|false Size of the file in bytes on success, false on failure.
}}}
This better matches the purpose of the API to provide a consistent interface for various filesystem implementations.
Follow-up to [6779], [30678], [45226], [53860], [53862].
Fixes #51170 .
Built from https://develop.svn.wordpress.org/trunk@53898
git-svn-id: http://core.svn.wordpress.org/trunk@53457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-16 13:41:14 +00:00
..
2022-04-28 16:39:11 +00:00
2020-02-06 06:33:11 +00:00
2022-08-12 00:17:07 +00:00
2022-04-04 18:26:06 +00:00
2021-09-09 13:48:56 +00:00
2020-11-09 10:53:10 +00:00
2020-11-09 10:53:10 +00:00
2021-09-09 13:59:56 +00:00
2022-04-11 11:50:01 +00:00
2022-07-04 10:14:14 +00:00
2022-07-04 10:11:12 +00:00
2022-04-14 15:15:12 +00:00
2022-03-22 16:25:03 +00:00
2022-03-26 15:28:08 +00:00
2021-09-09 13:59:56 +00:00
2022-04-11 11:42:04 +00:00
2021-08-29 01:33:58 +00:00
2022-05-20 17:38:14 +00:00
2020-11-09 10:53:10 +00:00
2022-05-20 17:38:14 +00:00
2022-05-20 17:38:14 +00:00
2020-11-09 10:53:10 +00:00
2022-05-20 17:38:14 +00:00
2021-09-09 13:03:55 +00:00
2021-09-09 12:39:59 +00:00
2022-07-05 08:06:17 +00:00
2021-09-09 13:48:56 +00:00
2021-06-07 23:49:58 +00:00
2022-05-20 17:38:14 +00:00
2022-07-04 08:20:15 +00:00
2022-01-20 09:19:07 +00:00
2022-05-20 17:38:14 +00:00
2022-08-09 11:33:10 +00:00
2022-08-09 11:33:10 +00:00
2022-08-16 13:41:14 +00:00
2022-08-09 11:33:10 +00:00
2022-08-09 11:33:10 +00:00
2022-03-30 10:45:06 +00:00
2021-11-30 17:18:01 +00:00
2021-09-07 19:24:53 +00:00
2020-11-14 16:54:08 +00:00
2022-08-09 00:33:11 +00:00
2022-05-19 15:54:15 +00:00
2021-12-07 12:20:02 +00:00
2021-09-10 14:49:00 +00:00
2022-06-14 14:43:12 +00:00
2022-05-02 13:07:14 +00:00
2022-08-11 13:55:08 +00:00
2022-05-19 15:54:15 +00:00
2022-03-10 19:22:01 +00:00
2020-10-20 21:20:07 +00:00
2022-04-11 11:42:04 +00:00
2021-11-24 11:41:03 +00:00
2022-06-16 23:10:10 +00:00
2022-03-22 16:25:03 +00:00
2022-08-03 14:32:12 +00:00
2022-04-11 14:21:09 +00:00
2022-08-13 22:44:09 +00:00
2022-03-17 22:21:07 +00:00
2022-03-18 12:44:04 +00:00
2021-09-09 13:59:56 +00:00
2022-06-26 12:37:18 +00:00
2022-06-14 14:43:12 +00:00
2022-07-20 22:15:10 +00:00
2021-03-19 15:42:04 +00:00
2021-10-19 23:09:00 +00:00
2022-08-11 13:55:08 +00:00
2022-04-20 08:13:10 +00:00
2021-12-07 12:20:02 +00:00
2022-07-29 08:14:12 +00:00
2022-07-17 02:18:09 +00:00
2022-06-21 11:16:17 +00:00
2022-08-05 22:16:13 +00:00
2022-07-29 09:22:10 +00:00
2022-04-15 10:52:11 +00:00
2022-08-12 12:11:09 +00:00
2022-04-17 14:44:07 +00:00
2022-08-05 13:39:11 +00:00
2022-07-11 18:18:13 +00:00
2022-04-18 10:33:09 +00:00
2022-04-19 15:59:10 +00:00
2022-07-21 09:04:14 +00:00
2021-11-30 17:18:01 +00:00
2022-08-05 06:12:10 +00:00
2022-08-11 13:55:08 +00:00
2022-07-18 17:37:17 +00:00
2022-06-01 18:14:10 +00:00
2022-07-25 19:30:09 +00:00
2022-08-03 12:20:16 +00:00
2021-05-09 20:27:02 +00:00
2022-06-16 23:39:08 +00:00
2022-08-11 14:03:09 +00:00
2022-08-05 06:00:09 +00:00
2022-06-01 18:14:10 +00:00
2022-01-27 21:15:03 +00:00
2022-05-23 17:02:16 +00:00
2022-07-09 12:59:11 +00:00
2022-08-15 13:18:13 +00:00
2022-06-02 15:05:13 +00:00
2021-12-13 10:21:07 +00:00