- Timestamp:
- 08/28/2020 01:10:29 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/comment-reply.js
r48876 r48904 176 176 temporaryElement.parentNode.replaceChild( respondElement, temporaryElement ); 177 177 cancelLink.style.display = 'none'; 178 var replyHeadingElement = getElementById( config.commentReplyTitleId ); 178 179 var replyHeadingElement = getElementById( config.commentReplyTitleId ); 179 180 var replyHeadingTextNode = replyHeadingElement && replyHeadingElement.firstChild; 181 180 182 if ( replyHeadingTextNode && replyHeadingTextNode.nodeType === Node.TEXT_NODE && headingText ) { 181 183 replyHeadingTextNode.textContent = headingText; 182 184 } 185 183 186 event.preventDefault(); 184 187 } … … 315 318 var element, cssHidden, style; 316 319 317 var replyHeading = getElementById( config.commentReplyTitleId );320 var replyHeading = getElementById( config.commentReplyTitleId ); 318 321 var replyHeadingTextNode = replyHeading && replyHeading.firstChild; 319 322 … … 338 341 cancelElement.style.display = ''; 339 342 addBelowElement.parentNode.insertBefore( respondElement, addBelowElement.nextSibling ); 340 if ( replyHeadingTextNode.nodeType === Node.TEXT_NODE ) { 343 344 if ( replyHeadingTextNode && replyHeadingTextNode.nodeType === Node.TEXT_NODE ) { 341 345 replyHeadingTextNode.textContent = replyTo; 342 346 } 347 343 348 /* 344 349 * This is for backward compatibility with third party commenting systems
Note: See TracChangeset
for help on using the changeset viewer.