[wp-trac] [WordPress Trac] #37598: Fix plugin/theme delete/install success hook inconsistency
WordPress Trac
noreply at wordpress.org
Mon Aug 8 22:51:45 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
------------------------------+-----------------------------------------
Comment (by jorbin):
In [changeset:"38219"]:
{{{
#!CommitTicketReference repository="" revision="38219"
Updates: Standardize JS Custom Event Names
Merges [38218] in to 4.6 branch.
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:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list