[wp-trac] [WordPress Trac] #46280: Uncaught javascript error on comment-reply.js

WordPress Trac noreply at wordpress.org
Tue Feb 19 21:55:27 UTC 2019


#46280: Uncaught javascript error on comment-reply.js
--------------------------+---------------------
 Reporter:  xknown        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.1
Component:  Comments      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------

Comment (by peterwilsoncc):

 Looking at the [https://wp-themes.com/p2/?p=19 P2 demo], the theme is
 printing comment-reply in the HTML header rather than the HTML footer as
 it's listed as a
 [https://themes.trac.wordpress.org/browser/p2/1.5.8/inc/js.php?marks=105-124#L105
 dependency of another script].

 `init` could be moved to the `DOMContentLoaded` event to account for this
 but I am in two minds as to whether this is a core or theme bug given part
 of the reason for #31590 was the script could throw an error on large
 comment threads.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46280#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list