Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update comment-reply.js
  • Loading branch information
justanotheranonymoususer authored Aug 17, 2020
commit 0a5185a4103b713e521122041c6df983f99c1c44
2 changes: 1 addition & 1 deletion src/js/_enqueues/lib/comment-reply.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ window.addComment = ( function( window ) {
var temporaryFormId = config.temporaryFormId;
var temporaryElement = getElementById( temporaryFormId );
var replyElement = getElementById( config.commentReplyTitleId );
var initialHeadingText = ( 'undefined' !== typeof replyElement ) ? replyElement.firstChild.textContent : '';
var initialHeadingText = replyElement ? replyElement.firstChild.textContent : '';

if ( temporaryElement ) {
// The element already exists, no need to recreate.
Expand Down