WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 5 months ago

#33287 new enhancement

Prompt the user before leaving during core upgrade

Reported by: helium-3 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.1.6
Component: Upgrade/Install Keywords:
Focuses: javascript, administration Cc:
PR Number:

Description

Yesterday I was updating a test site (from 4.1.x to 4.2.x) using update-core.php and I accidentally clicked 'back' button during installation, which aborted the update process when it wasn't finished yet. This resulted in breaking the site completely (call to undefined function wp() ). It could have been easily prevented by simple beforeunload prompt.

Change History (2)

#1 @atomicjack
4 years ago

Agreed. A javascript prompt would be suitable for this - just like when leaving a post/page you've started to modify.

#2 @dd32
4 years ago

Related is #32652 to avoid PHP ending the request in the event of the browser disconnection.

Note: See TracTickets for help on using tickets.