[wp-trac] [WordPress Trac] #21170: JavaScript actions and filters
WordPress Trac
noreply at wordpress.org
Sat Mar 8 21:31:43 UTC 2014
#21170: JavaScript actions and filters
-----------------------------+-----------------------------
Reporter: koopersmith | Owner: koopersmith
Type: feature request | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 3.4
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses: javascript
-----------------------------+-----------------------------
Comment (by TV productions):
In [[attachment:21170-1.patch]]:
* Implemented the last [https://github.com/gcorne/WP-JS-Hooks/ WP JS
Hooks] from gcorne.
* Replaced `$(document).trigger()` for `autosave.js`, `heartbeat.js`,
`word-count.js`, `post.js`, `inline-edit-post.js`,
`tinymce/plugins/wordpress/plugin.js` and `wp-auth-check.js`.
* I've tested it, but you should test it too.
Why I implemented this? Because I really like the idea of js hooks and
this solution of gcorne seems good for now, because it looks a lot like
the PHP API, so probably a lot developers will recognise it. Besides that
it has no dependencies, what is nice for front-end (as you guys noted
earlier).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21170#comment:91>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list