[wp-trac] [WordPress Trac] #57375: Add move_dir() function
WordPress Trac
noreply at wordpress.org
Mon Feb 6 04:19:51 UTC 2023
#57375: Add move_dir() function
---------------------------------------------+-----------------------------
Reporter: afragen | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.2
Component: Filesystem API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: performance
---------------------------------------------+-----------------------------
Comment (by peterwilsoncc):
In [changeset:"55226" 55226]:
{{{
#!CommitTicketReference repository="" revision="55226"
Filesystem API: Prevent fatal error in `move_dir()`.
Correctly instantiate `WP_Error()` within `move_dir()` to prevent a fatal
error when unable to delete an existing directory that is intended to be
replaced.
Follow-up to [55204], [55219], [55220], [55223].
Props swissspidy, costdev, afragen.
Fixes #57375.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57375#comment:85>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list