[wp-trac] [WordPress Trac] #54166: Updating errors due to PHP timeouts
WordPress Trac
noreply at wordpress.org
Tue Nov 30 19:10:47 UTC 2021
#54166: Updating errors due to PHP timeouts
-------------------------------------------+-----------------------------
Reporter: aristath | Owner: SergeyBiryukov
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.9
Component: Upgrade/Install | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch early needs-testing | Focuses:
-------------------------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"52289" 52289]:
{{{
#!CommitTicketReference repository="" revision="52289"
Upgrade/Install: Make some adjustments to the `move_dir()` function:
* Check for direct PHP flle access and only use `rename()` if true.
* Check whether the destination directory was successfully created.
* Clear the working directory so there is internal parity within the
function between the results of a successful `rename()` and a fallback to
`copy_dir()`.
* Use `move_dir()` in `WP_Upgrader::move_to_temp_backup_dir()` and
`::restore_temp_backup()`.
Follow-up to [51815], [51898], [51899], [51902], [52192], [52284].
Props afragen, peterwilsoncc, dd32, SergeyBiryukov.
See #54166, #51857.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54166#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list