[wp-trac] [WordPress Trac] #57386: Add filter to WP_Upgrader::install_package for copy_dir()
WordPress Trac
noreply at wordpress.org
Tue Jan 10 21:04:15 UTC 2023
#57386: Add filter to WP_Upgrader::install_package for copy_dir()
------------------------------------+--------------------------
Reporter: afragen | Owner: (none)
Type: feature request | Status: reopened
Priority: normal | Milestone: 6.2
Component: Upgrade/Install | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: performance
------------------------------------+--------------------------
Comment (by azaozz):
Replying to [comment:28 SergeyBiryukov]:
> Same here, the plan outlined in
[https://core.trac.wordpress.org/ticket/57386?replyto=28#comment:26
comment:26] sounds great to me.
Sounds good here too.
> I believe we generally only introduce new core functions once they are
actually used in core
Was just thinking that too. If `move_dir()` is opt-in, i.e. it is
unused/disabled by default, and a plugin is needed to enable/use it, why
not add the function to the plugin?
Then, if there is a workaround, or VB can be detected, or `move_dir()` is
opt-out instead of opt-in, the function can be moved to core and the
plugin discontinued.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57386#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list