[wp-trac] [WordPress Trac] #37598: Fix plugin/theme delete/install success hook inconsistency
WordPress Trac
noreply at wordpress.org
Mon Aug 8 22:48:37 UTC 2016
#37598: Fix plugin/theme delete/install success hook inconsistency
------------------------------+-----------------------------------------
Reporter: olarmarius | Owner: jorbin
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.6
Component: Themes | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: javascript, administration
------------------------------+-----------------------------------------
Changes (by jorbin):
* status: reviewing => closed
* resolution: => fixed
Comment:
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/37598#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list