davidbaumwald
aeb5d2ef17
Upgrade/Install: Fix parameter count in error
call when an automatic core upgrade fails.
...
During automatic core upgrades, if installation results in a `WP_Error`, the `error` method is called on the skin with the details. However, in this case, two parameters are passed to `$skin->error`, but only one is accepted. This change passes only the running `WP_Error` instance as the sole parameter to `$skin->error`.
Also, this change adds an additional error to `$upgrade_result` before finally being passed to `$skin->error`, indicating that the installation failed. This adds additional context to the failure.
Props desrosj, sainthkh, devutpol, SergeyBiryukov.
Fixes #53284 .
Built from https://develop.svn.wordpress.org/trunk@52539
git-svn-id: http://core.svn.wordpress.org/trunk@52129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-07 17:55:01 +00:00
..
2021-06-30 00:21:58 +00:00
2020-02-06 06:33:11 +00:00
2021-11-15 22:24:01 +00:00
2021-05-25 20:14:59 +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
2021-06-19 21:37:57 +00:00
2021-08-19 02:07:56 +00:00
2021-11-30 17:18:01 +00:00
2020-01-29 00:45:18 +00:00
2019-11-01 14:57:02 +00:00
2019-11-01 14:57:02 +00:00
2020-06-03 17:40:12 +00:00
2021-09-09 13:59:56 +00:00
2020-10-05 13:44:11 +00:00
2021-08-29 01:33:58 +00:00
2021-05-19 18:10:59 +00:00
2020-11-09 10:53:10 +00:00
2021-12-10 00:06:04 +00:00
2021-11-18 13:50:05 +00:00
2020-11-09 10:53:10 +00:00
2021-12-10 00:06:04 +00:00
2021-09-09 13:03:55 +00:00
2021-09-09 12:39:59 +00:00
2021-11-18 13:50:05 +00:00
2021-09-09 13:48:56 +00:00
2021-06-07 23:49:58 +00:00
2022-01-07 17:55:01 +00:00
2021-11-18 13:57:01 +00:00
2021-08-26 12:59:02 +00:00
2021-11-05 21:05:00 +00:00
2021-12-07 12:20:02 +00:00
2021-12-07 12:20:02 +00:00
2021-12-07 12:20:02 +00:00
2021-12-07 12:20:02 +00:00
2021-12-07 12:20:02 +00:00
2021-04-08 11:12:08 +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
2021-10-01 18:39:58 +00:00
2021-10-12 16:44:01 +00:00
2021-12-07 12:20:02 +00:00
2021-09-10 14:49:00 +00:00
2021-09-07 19:24:53 +00:00
2021-09-21 18:21:00 +00:00
2021-11-20 02:23:02 +00:00
2018-08-17 01:51:36 +00:00
2021-11-19 14:44:01 +00:00
2020-10-20 21:20:07 +00:00
2020-10-20 21:20:07 +00:00
2021-11-24 11:41:03 +00:00
2021-11-24 11:41:03 +00:00
2021-11-27 02:07:00 +00:00
2021-10-18 17:52:58 +00:00
2021-12-10 00:06:04 +00:00
2021-02-02 16:53:04 +00:00
2021-11-16 14:57:02 +00:00
2021-11-18 13:50:05 +00:00
2020-07-21 16:33:05 +00:00
2021-09-09 13:59:56 +00:00
2019-10-08 17:19:04 +00:00
2021-12-10 00:06:04 +00:00
2021-12-31 15:30:01 +00:00
2021-04-06 13:45:09 +00:00
2021-03-19 15:42:04 +00:00
2021-10-19 23:09:00 +00:00
2022-01-04 19:13:02 +00:00
2021-12-21 20:06:02 +00:00
2021-12-07 12:20:02 +00:00
2021-04-11 13:44:13 +00:00
2021-12-31 13:55:03 +00:00
2021-07-02 07:11:58 +00:00
2021-12-31 13:55:03 +00:00
2021-01-05 17:16:11 +00:00
2021-01-03 22:04:04 +00:00
2021-12-07 12:20:02 +00:00
2020-05-23 11:38:08 +00:00
2021-11-30 17:18:01 +00:00
2021-12-21 20:06:02 +00:00
2020-01-29 00:35:08 +00:00
2019-09-03 00:41:05 +00:00
2021-12-07 12:20:02 +00:00
2021-05-24 19:59:57 +00:00
2021-11-02 17:37:57 +00:00
2019-09-20 20:46:56 +00:00
2021-11-30 17:18:01 +00:00
2021-12-29 17:28:00 +00:00
2021-12-10 20:30:05 +00:00
2021-12-07 12:20:02 +00:00
2021-08-26 14:05:58 +00:00
2021-12-07 12:20:02 +00:00
2021-11-19 14:44:01 +00:00
2021-05-09 20:27:02 +00:00
2021-11-23 21:37:01 +00:00
2021-11-30 17:18:01 +00:00
2021-03-20 18:30:08 +00:00
2021-12-29 17:28:00 +00:00
2021-01-03 22:04:04 +00:00
2021-11-17 17:45:00 +00:00
2021-11-20 02:23:02 +00:00
2022-01-06 17:07:03 +00:00
2021-11-30 17:18:01 +00:00
2021-12-13 10:21:07 +00:00