Make WordPress Core

Ticket #47306: addComment_more_references.patch

File addComment_more_references.patch, 398 bytes (added by jnorell, 6 years ago)

addComment: expose references to functions and config

  • wp-includes/js/comment-reply.js

    diff --git a/wp-includes/js/comment-reply.js b/wp-includes/js/comment-reply.js
    index 75fc183..60ca981 100644
    a b window.addComment = ( function( window ) { 
    385385        }
    386386
    387387        return {
     388                config: config,
    388389                init: init,
     390                clickEvent: clickEvent,
     391                cancelEvent: cancelEvent,
    389392                moveForm: moveForm
    390393        };
    391394})( window );