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-07-25 18:11:08 +00:00
2022-05-10 16:45:08 +00:00
2022-08-16 13:41:14 +00:00
2022-08-05 14:12:11 +00:00
2020-12-04 15:50:12 +00:00
2022-08-12 12:11:09 +00:00
2020-02-06 06:33:11 +00:00
2022-05-25 02:19:17 +00:00
2022-05-07 16:21:18 +00:00
2021-06-01 11:30:57 +00:00
2020-02-06 06:33:11 +00:00
2022-04-04 18:39:01 +00:00
2022-03-02 15:00:11 +00:00
2022-04-04 18:43:02 +00:00
2022-01-27 22:17:00 +00:00
2022-08-04 14:52:11 +00:00
2022-03-22 16:25:03 +00:00
2022-01-04 18:35:03 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2022-03-29 19:10:14 +00:00
2022-05-29 15:35:11 +00:00
2022-04-11 11:42:04 +00:00
2022-05-17 14:38:14 +00:00
2022-05-29 15:35:11 +00:00
2022-03-22 16:25:03 +00:00
2022-06-01 18:14:10 +00:00
2022-08-04 14:52:11 +00:00
2022-05-29 15:35:11 +00:00
2022-04-14 14:46:07 +00:00
2022-04-14 14:46:07 +00:00
2022-04-11 11:42:04 +00:00
2022-04-11 11:42:04 +00:00
2021-07-22 13:53:00 +00:00
2021-11-03 03:16:57 +00:00
2022-04-20 11:19:12 +00:00
2022-07-21 16:00:15 +00:00
2021-07-22 13:53:00 +00:00
2021-07-22 13:53:00 +00:00
2020-07-05 15:22:01 +00:00
2021-07-27 19:01:59 +00:00
2021-12-12 14:52:02 +00:00
2021-12-12 14:52:02 +00:00
2021-07-22 13:53:00 +00:00
2021-03-07 12:32:09 +00:00
2022-03-22 16:25:03 +00:00
2022-04-07 12:54:03 +00:00
2021-12-25 03:32:03 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2021-07-22 13:53:00 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2021-07-22 13:53:00 +00:00
2022-07-14 14:10:11 +00:00
2021-07-22 13:53:00 +00:00
2022-03-28 10:56:04 +00:00
2022-08-03 12:20:16 +00:00
2019-08-16 00:39:55 +00:00
2021-07-22 13:53:00 +00:00
2022-07-17 02:18:09 +00:00
2022-04-12 13:43:16 +00:00
2022-01-02 16:47:05 +00:00
2021-07-22 13:53:00 +00:00
2022-07-17 02:18:09 +00:00
2022-07-22 11:33:10 +00:00
2022-03-22 16:25:03 +00:00
2022-08-05 06:00:09 +00:00
2020-05-16 18:42:12 +00:00
2022-03-22 16:25:03 +00:00
2020-02-06 06:33:11 +00:00
2022-04-11 11:42:04 +00:00
2021-07-22 13:53:00 +00:00
2020-02-06 06:33:11 +00:00
2022-01-07 16:47:00 +00:00
2022-08-02 16:34:13 +00:00
2022-07-27 12:27:16 +00:00
2021-11-01 22:36:59 +00:00
2021-12-18 21:02:04 +00:00
2022-06-01 18:14:10 +00:00
2022-07-22 11:33:10 +00:00
2022-04-16 06:15:09 +00:00
2022-07-06 19:46:10 +00:00
2021-07-22 13:53:00 +00:00
2022-08-05 06:12:10 +00:00
2021-07-22 13:53:00 +00:00
2020-02-06 06:33:11 +00:00
2022-06-01 18:14:10 +00:00
2022-06-29 13:39:14 +00:00
2022-07-21 19:32:12 +00:00
2022-04-08 17:40:07 +00:00
2022-07-05 00:25:13 +00:00
2022-04-07 13:40:04 +00:00
2021-09-09 21:40:57 +00:00
2022-03-22 19:59:04 +00:00