[wp-trac] [WordPress Trac] #63596: The upgrader_process_complete hook doesn't fire during bulk updates

WordPress Trac noreply at wordpress.org
Thu Jun 19 14:46:31 UTC 2025


#63596: The upgrader_process_complete hook doesn't fire during bulk updates
-----------------------------------------+------------------------------
 Reporter:  vipulpatil                   |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Upgrade/Install              |     Version:  trunk
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+------------------------------
Changes (by davidbaumwald):

 * keywords:  has-patch => has-patch reporter-feedback


Comment:

 @vipulpatil In both `Plugin_Upgrader` and `Theme_Upgrader`, there exists a
 `bulk_upgrade` method, both of which eventually call
 `upgrader_process_complete`.

 In fact, what you're seeing in `WP_Upgrader->run()` is what is being run
 for each plugin when `Plugin|Theme_Upgrader->bulk_upgrade` is run, but the
 `is_multi` prop is true to prevent `upgrader_process_complete` from being
 called on every individual update.  Instead, the `bulk_upgrade` method
 calls it once after all individual updates are run.

 Is there some other way that you've determined `WP_Upgrader->run()` is
 being run with `'is_multi' => true` and `upgrader_process_complete` not
 being eventually called after successful upgrading of all packages?

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


More information about the wp-trac mailing list