Closed ChrisOrlando closed 4 years ago
You're right and this was my mistake. I actually noticed this shortly after my pull request and had the fix in my local repository, however, let's get this fixed in this pull request instead. Can you please make the requested change?
done! thanks for the quick response
squashed!
Thanks @ChrisOrlando! Your contribution is much appreciated.
It appears that #84 accidentally broke the post-upgrade hook, causing a critical error. The
upgrader_process_complete
action accepts two arguments: theWP_Upgrader
instance and an array of extra data. In the refactoring, theWP_Upgrader
instance was removed, resulting in errors like:This PR reverts that part of the refactoring, ensuring the proper arguments are passed to
on_upgrade_hook
.