Sergey Biryukov
1364db92bb
Upgrade/Install: Pass stored credentials to WP_Filesystem()
where appropriate.
...
With the introduction of temporary backups of plugins and themes before updating, a new Site Health test was added to verify that plugin and theme temporary backup directories are writable or can be created.
When using a non-direct filesystem, the Site Health test did not include the required credentials, leading to a fatal error as the connection was not initialized properly.
This commit attemps to use the stored credentials if available, and displays a message otherwise.
Includes a similar fix in a function that performs a cleanup of the temporary backup directory.
Follow-up to [55720].
Props utsav72640, rajinsharwar, costdev, mukesh27, peterwilsoncc, audrasjb, SergeyBiryukov.
See #58940 .
Built from https://develop.svn.wordpress.org/trunk@56341
git-svn-id: http://core.svn.wordpress.org/trunk@55853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-08-01 16:07:25 +00:00
..
2023-08-01 08:01:54 +00:00
2023-07-13 11:34:28 +00:00
2023-08-01 08:01:54 +00:00
2023-08-01 08:01:54 +00:00
2023-07-10 23:00:22 +00:00
2023-08-01 07:56:23 +00:00
2023-04-04 14:56:22 +00:00
2023-08-01 08:01:54 +00:00
2023-03-17 14:22:22 +00:00
2023-06-22 14:57:24 +00:00
2023-04-05 13:12:26 +00:00
2023-07-19 22:53:23 +00:00
2023-07-10 23:19:23 +00:00
2023-04-30 14:08:23 +00:00
2023-06-26 23:44:29 +00:00
2023-05-12 08:51:22 +00:00
2023-06-19 18:27:27 +00:00
2023-07-10 23:21:22 +00:00
2023-07-12 12:54:24 +00:00
2023-05-14 17:58:24 +00:00
2023-06-27 00:23:23 +00:00
2023-06-27 11:13:27 +00:00
2023-08-01 02:12:24 +00:00
2023-07-11 11:33:27 +00:00
2023-07-17 01:47:26 +00:00
2023-06-22 14:57:24 +00:00
2023-07-09 20:17:29 +00:00
2023-07-17 13:18:27 +00:00
2023-07-09 20:17:29 +00:00
2023-06-05 11:16:18 +00:00
2023-02-13 09:08:23 +00:00
2023-02-11 12:43:22 +00:00
2023-04-05 13:12:26 +00:00
2023-05-12 21:35:21 +00:00
2023-06-06 00:30:20 +00:00
2023-06-27 15:26:27 +00:00
2023-06-11 09:27:18 +00:00
2023-06-12 06:12:24 +00:00
2023-07-09 20:17:29 +00:00
2023-05-08 22:37:24 +00:00
2023-06-27 00:45:38 +00:00
2023-06-27 00:45:38 +00:00
2023-06-27 00:45:38 +00:00
2023-04-27 22:29:18 +00:00
2023-05-08 22:37:24 +00:00
2023-06-23 06:29:23 +00:00
2023-04-21 10:43:25 +00:00
2023-07-18 07:37:21 +00:00
2023-06-22 14:36:26 +00:00
2023-04-24 16:37:22 +00:00
2023-07-09 20:17:29 +00:00
2023-07-09 20:17:29 +00:00
2023-06-22 14:57:24 +00:00
2023-02-07 17:10:21 +00:00
2023-02-07 17:10:21 +00:00
2023-05-02 15:45:22 +00:00
2023-06-22 14:36:26 +00:00
2023-07-13 11:34:28 +00:00
2023-07-14 20:59:26 +00:00
2023-07-09 20:17:29 +00:00
2023-02-21 16:39:19 +00:00
2023-02-23 10:38:21 +00:00
2023-05-11 11:43:21 +00:00
2023-06-24 17:17:23 +00:00
2023-07-03 14:03:29 +00:00
2023-06-22 14:57:24 +00:00
2023-06-22 14:36:26 +00:00
2023-07-03 14:03:29 +00:00
2023-06-22 14:36:26 +00:00
2023-07-11 06:31:22 +00:00
2023-07-19 22:35:27 +00:00
2023-07-11 06:31:22 +00:00
2023-07-05 11:15:22 +00:00
2023-07-09 21:25:23 +00:00
2023-07-09 21:25:23 +00:00
2023-06-22 14:36:26 +00:00
2023-05-11 11:15:24 +00:00
2023-07-18 07:37:21 +00:00
2023-03-10 16:30:03 +00:00
2023-07-12 09:46:25 +00:00
2023-03-14 16:55:19 +00:00
2023-07-09 21:25:23 +00:00
2023-06-22 14:36:26 +00:00
2023-07-09 21:25:23 +00:00
2023-05-02 15:45:22 +00:00
2023-02-21 15:59:18 +00:00
2023-05-02 15:45:22 +00:00
2023-07-11 11:35:23 +00:00
2023-07-28 11:37:25 +00:00
2023-07-20 00:06:21 +00:00
2023-07-07 06:42:25 +00:00
2023-06-22 14:36:26 +00:00
2023-05-02 15:45:22 +00:00
2023-07-08 10:48:24 +00:00
2023-04-27 23:15:17 +00:00
2023-04-21 09:24:22 +00:00
2023-07-09 21:25:23 +00:00
2023-07-09 21:25:23 +00:00
2023-07-09 21:40:23 +00:00
2023-05-06 11:40:24 +00:00
2023-07-09 22:17:22 +00:00
2023-07-09 21:48:22 +00:00
2023-07-09 09:59:24 +00:00
2023-07-10 12:53:26 +00:00
2023-02-21 16:39:19 +00:00
2023-07-17 13:18:27 +00:00
2023-07-09 21:48:22 +00:00
2023-07-09 21:48:22 +00:00
2023-06-22 14:57:24 +00:00
2023-07-09 21:48:22 +00:00
2023-07-05 17:41:22 +00:00
2023-07-09 21:48:22 +00:00
2023-07-14 14:10:26 +00:00
2023-07-05 16:21:27 +00:00
2023-07-17 14:50:21 +00:00
2023-07-09 21:48:22 +00:00
2023-05-02 15:45:22 +00:00
2023-07-29 00:31:35 +00:00
2023-02-12 18:08:21 +00:00
2023-07-09 21:48:22 +00:00
2023-07-30 08:53:25 +00:00
2023-07-31 13:33:24 +00:00
2023-06-26 13:42:23 +00:00
2023-06-26 10:17:25 +00:00
2023-07-18 00:02:22 +00:00
2023-06-22 14:57:24 +00:00
2023-07-10 22:38:25 +00:00
2023-07-10 22:38:25 +00:00
2023-07-10 22:38:25 +00:00
2023-06-23 16:03:25 +00:00
2023-07-17 13:18:27 +00:00
2023-07-17 14:50:21 +00:00
2023-06-19 23:20:21 +00:00
2023-07-23 16:00:26 +00:00
2023-07-10 22:38:25 +00:00
2023-06-22 14:57:24 +00:00
2023-07-10 22:48:22 +00:00
2023-02-24 01:23:20 +00:00
2023-06-22 14:57:24 +00:00
2023-06-22 14:36:26 +00:00
2023-07-10 22:48:22 +00:00
2023-07-10 22:48:22 +00:00
2023-05-02 11:26:24 +00:00
2023-06-22 14:57:24 +00:00
2023-07-10 22:48:22 +00:00
2023-02-16 00:04:21 +00:00
2023-07-10 22:48:22 +00:00
2023-07-25 06:30:20 +00:00
2023-08-01 11:01:28 +00:00
2023-07-17 13:18:27 +00:00
2023-06-08 07:54:22 +00:00
2023-02-21 16:39:19 +00:00
2023-07-10 22:48:22 +00:00
2023-05-17 18:31:24 +00:00
2023-07-11 05:10:23 +00:00
2023-07-10 22:48:22 +00:00
2023-07-10 22:48:22 +00:00
2023-07-10 22:48:22 +00:00
2023-07-11 11:15:27 +00:00
2023-04-10 19:31:18 +00:00
2023-07-28 17:17:24 +00:00
2023-07-20 00:06:21 +00:00
2023-05-17 12:06:19 +00:00
2023-07-10 23:11:22 +00:00
2023-07-10 23:11:22 +00:00
2023-07-12 05:21:23 +00:00
2023-07-10 23:11:22 +00:00
2023-06-27 07:25:22 +00:00
2023-07-10 23:11:22 +00:00
2023-08-01 16:07:25 +00:00
2023-07-10 23:11:22 +00:00
2023-07-13 00:58:25 +00:00
2023-08-01 16:07:25 +00:00
2023-07-10 23:11:22 +00:00