[wp-trac] [WordPress Trac] #57386: Add filter to WP_Upgrader::install_package for copy_dir()

WordPress Trac noreply at wordpress.org
Thu Jan 5 00:28:02 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        |     Focuses:  performance
-----------------------------+--------------------------

Comment (by afragen):

 Peter you commented in
 [https://core.trac.wordpress.org/ticket/56057#comment:31 #56057].

 > Instead of introducing a generic hook (be it filter or action) that
 could be used in multiple use cases, it's introducing a filter that is
 pretty tightly limited to the use case of testing the rollback plugin.
 >
 > However, once the rollback plugin is tested the filter needs to be
 maintained for the forseable future by WordPress maintainers.

 I'm not certain of your definition of "snowflake code" but this PR
 corresponds to a generic hook that has additional use cases aside from
 testing a feature plugin. Additionally, I have provided use cases and
 opened this ticket as @azaozz requested.

 A simple plugin such as, [https://github.com/afragen/faster-updates Faster
 Updates], could be used to improve the performance and efficiency for most
 users and it has a high likelihood of fixing #53832, #54166, and #34676
 for those users.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57386#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list