[wp-trac] [WordPress Trac] #31769: Prevent navigating away while plugins are updating via shiny updates
WordPress Trac
noreply at wordpress.org
Thu Apr 2 14:57:51 UTC 2015
#31769: Prevent navigating away while plugins are updating via shiny updates
-------------------------------------+-------------------------------------
Reporter: johnbillion | Owner: johnbillion
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 4.2
Component: Upgrade/Install | Version: trunk
Severity: normal | Resolution:
Keywords: dev-feedback needs- | Focuses: javascript,
testing 4.2-strings has-patch | administration
needs-refresh |
-------------------------------------+-------------------------------------
Changes (by johnbillion):
* keywords: has-patch, dev-feedback, needs-testing, 4.2-strings => dev-
feedback needs-testing 4.2-strings has-patch needs-refresh
Comment:
This doesn't clear the onbeforeunload event if an error occurs with a
plugin update.
It looks like `wp.updates.updateLock = false;` needs to be called in
`wp.updates.updateError()` in the same way that it is in
`wp.updates.updateSuccess()`, but I'm not overly familiar with this code.
@jorbin @pento @adamsilverstein thoughts?
Also patch needs a refresh to apply cleanly.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31769#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list