[wp-trac] [WordPress Trac] #31964: Use a replaceable function for the beforeupload handler with shiny updates
WordPress Trac
noreply at wordpress.org
Mon Apr 13 22:34:11 UTC 2015
#31964: Use a replaceable function for the beforeupload handler with shiny updates
--------------------------------------------+-----------------------------
Reporter: DavidAnderson | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: trunk
Severity: normal | Keywords:
Focuses: ui, javascript, administration |
--------------------------------------------+-----------------------------
In #31819, I proposed changing the anonymous function used for the
beforeunload handler in shiny updates (which is used for the "Are you
sure?" alert).
The attached does two things:
1) Uses a replaceable function instead of an anonymous one, allowing
plugins to hook in and adapt the process. (I have a use case for this).
and
2) Triggers an wp-plugin-shinyupdates-loaded event, so that plugins can do
this at an appropriate time.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31964>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list