[wp-trac] [WordPress Trac] #37512: Shiny Updates: Trigger a JS event when deleting/installing themes/plugins
WordPress Trac
noreply at wordpress.org
Mon Aug 8 22:48:34 UTC 2016
#37512: Shiny Updates: Trigger a JS event when deleting/installing themes/plugins
------------------------------+-----------------------------------------
Reporter: DavidAnderson | Owner: jorbin
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.6
Component: Upgrade/Install | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: javascript, administration
------------------------------+-----------------------------------------
Comment (by jorbin):
In [changeset:"38218"]:
{{{
#!CommitTicketReference repository="" revision="38218"
Updates: Standardize JS Custom Event Names
Custom JS events are triggered on the document in order for plugins to
have something to hook into. The standard began in #31819 is dash
separated and begins with `wp` to signify the namespace, followed by the
subject of our action ( "theme", "plugin", etc.) followed by the action
and an optional indicator of status ( "install-success", "deleting" ).
This brings some of the theme hooks in line with the standard. As of now,
all plugin actions in `src/wp-admin/js/updates.js` have an equal
corresponding theme action.
Fixes #37598.
See #37512, #37216, #31819.
Props olarmarius, ocean90.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37512#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list