[wp-trac] [WordPress Trac] #57375: Add move_dir() function
WordPress Trac
noreply at wordpress.org
Fri Feb 3 01:48:50 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
---------------------------------------------+-----------------------------
Changes (by azaozz):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"55204" 55204]:
{{{
#!CommitTicketReference repository="" revision="55204"
Filesystem API: Add directory support to `WP_Filesystem_Direct::move()`.
Introduces:
- New function: `wp_opcache_invalidate_directory()`, to recursively call
`wp_opcache_invalidate()` after overwriting .php files.
- New function: `move_dir()`, similar to `copy_dir()` that uses
`WP_Filesystem::move()` followed by `wp_opcache_invalidate_directory()`,
and has a fallback to `copy_dir()`.
Props: costdev, afragen, peterwilsoncc, sergeybiryukov, ironprogrammer,
flixos90, bronsonquick, mukesh27, azaozz.
Fixes #57375.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57375#comment:74>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list