[wp-trac] [WordPress Trac] #49915: Function registered on `upgrader_process_complete` does not run on first update.
WordPress Trac
noreply at wordpress.org
Tue Jul 28 20:17:42 UTC 2020
#49915: Function registered on `upgrader_process_complete` does not run on first
update.
-----------------------------+------------------------------
Reporter: apedog | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses:
-----------------------------+------------------------------
Changes (by apedog):
* status: new => closed
* resolution: => invalid
Comment:
After discussion on slack, it's been made clear that this is expected
behaviour.
- The {{{upgrader_process_complete}}} is not meant to be used to run
plugin update routines. Only cleanup/logging/setting transients etc.
- No code from the updated plugin can be run ''during'' the upgrade
process. Only the old version of the plugin is available during the
request.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49915#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list