Database upgrade script can kill POST requests
|Reported by:||dd32||Owned by:||dd32|
If a site upgrade is done whilst a user is active, a database upgrade may be triggered on a POST request.
The result of this is that the POST data is lost, and the user may be redirected to a page without any query vars (as they were POST vars, not GET).
Since the Database upgrades are upgrades which are generally not necessary to be performed at that exact instant, we can avoid running the upgrade on POST requests with data (such as the Save Draft action), and let the following GET have the honours (as most POST requests will perform a redirect to a GET afterwards).
Related: #7965 - Database upgrade complete message should be an admin notice
As reported by Matt