[wp-trac] [WordPress Trac] #47306: comment reply event listener: need ability to run custom js function
WordPress Trac
noreply at wordpress.org
Sun May 26 22:42:34 UTC 2019
#47306: comment reply event listener: need ability to run custom js function
-------------------------+-----------------------------
Reporter: jnorell | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Comments | Version: 5.1
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+-----------------------------
Changes (by peterwilsoncc):
* status: closed => reopened
* resolution: invalid =>
* milestone: => Future Release
Comment:
Thanks for the patch, I've reopened the ticket.
To allow for the handler to be overridden, the cancel event will need to
call `window.addComment.cancelEvent` (similar to how `moveForm` is called
in the click handler.
Otherwise the function within scope will be called even if a plugin
replaces it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47306#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list