Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Deactivation and activation of VersionPress keeps original VPIDs and files #931
When user deactivates and activates VersionPress, it uses original IDs where it's possible. It means that now it is possible to track history of e.g. post even after update of VersionPress. Technically, it was achieved by moving some of the logic from deactivation to uninstallation. For example, INI files are now only deleted on uninstallation.
The update process remains the same:
Is this OK or should I create some WP-CLI command for update?
I also encountered a little problem: VersionPress cannot be updated using GUI only. WordPress refuses new ZIP if VersionPress is already installed. The user may click on the delete link and the history will be gone.
WP-CLI command would be useful. It doesn't need to be too fancy, for example, something simple like
would be enough. In the future, we should integrate with WP Upgrader and deprecate this temporary helper command.
Other than that, the code looks