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

WordPress Trac noreply at wordpress.org
Thu Jan 5 02:25:59 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 SergeyBiryukov):

 Replying to [comment:10 peterwilsoncc]:
 > Please refer to my
 [https://core.trac.wordpress.org/ticket/56057#comment:13 comment from
 June] suggesting the `update-custom_{$action}` hook as a suitable generic
 hook.
 >
 > As discussed in Slack last week, the sibling hook `update-core-
 custom_{$action}` is available on the update core pages.

 I might be missing something, but wouldn't using these hooks to replace a
 single `copy_dir()` call, while technically possible, require recreating
 the entire core, plugin, and theme update processes? That seems like quite
 an overkill and a challenge to maintain.

 Could there be an easier, more reliable solution to replace the
 `copy_dir()` usage in this context?

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


More information about the wp-trac mailing list