[wp-trac] [WordPress Trac] #56057: Add conditional to WP_Upgrader::install_package() for Rollback testing

WordPress Trac noreply at wordpress.org
Thu Dec 22 02:58:02 UTC 2022


#56057: Add conditional to WP_Upgrader::install_package() for Rollback testing
-----------------------------+-----------------------------
 Reporter:  afragen          |       Owner:  SergeyBiryukov
     Type:  task (blessed)   |      Status:  reopened
 Priority:  normal           |   Milestone:  6.2
Component:  Upgrade/Install  |     Version:  6.1
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------------

Comment (by costdev):

 While utilizing the `update-core-custom_{$action}` and `update-
 custom_{$action}` hooks can work for some upgrade paths, it will not work
 for all - WP-CLI for example.

 This means that testing the rollback plugin via WP-CLI, for example, will
 require testers to manually change Core to use `move_dir()` instead of
 `copy_dir()`.

 As we have to ensure that BC is protected in all upgrade paths, the two
 hooks above are certainly useful, but not a complete replacement for
 testing the plugin - especially for non-dev contributors who may have WP-
 CLI, but are unfamilar/uncomfortable with editing code.

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


More information about the wp-trac mailing list