[wp-trac] [WordPress Trac] #37216: Shiny Updates: Trigger event handler when updating theme
WordPress Trac
noreply at wordpress.org
Mon Aug 8 22:51:43 UTC 2016
#37216: Shiny Updates: Trigger event handler when updating theme
-----------------------------+-------------------------
Reporter: DavidAnderson | Owner: swissspidy
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.6
Component: Upgrade/Install | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-----------------------------+-------------------------
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/37216#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list