Title: [Plugin: Disqus Comment System] Minor bug in Javascript code
Last modified: August 19, 2016

---

# [Plugin: Disqus Comment System] Minor bug in Javascript code

 *  Anonymous User 4048828
 * (@anonymized-4048828)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-disqus-comment-system-minor-bug-in-javascript-code/)
 * Minor bug in version 2.61 can be found on lines 1051 and 1080 of disqus.php file,
   which is an unterminated “else” statement (no semicolon).
 * Fix:
 * Starting line 1046 and 1076 (duplicate code):
 *     ```
       if (nodes[i].className.indexOf('dsq-postid') != -1) {
         nodes[i].parentNode.setAttribute('data-disqus-identifier', nodes[i].getAttribute('rel'));
         url = nodes[i].parentNode.href.split('#', 1);
         if (url.length == 1) url = url[0];
         else url = url[1]; // <-- NOT TERMINATED IN ORIGINAL
         nodes[i].parentNode.href = url + '#disqus_thread';
       }
       ```
   
 * It can cause issues with some JS minifiers, as with certain WordPress caches.
 * [http://wordpress.org/extend/plugins/disqus-comment-system/](http://wordpress.org/extend/plugins/disqus-comment-system/)

The topic ‘[Plugin: Disqus Comment System] Minor bug in Javascript code’ is closed
to new replies.

 * ![](https://ps.w.org/disqus-comment-system/assets/icon.svg?rev=1636350)
 * [Disqus Comment System](https://wordpress.org/plugins/disqus-comment-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disqus-comment-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disqus-comment-system/)
 * [Active Topics](https://wordpress.org/support/plugin/disqus-comment-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disqus-comment-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disqus-comment-system/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: Anonymous User 4048828
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-disqus-comment-system-minor-bug-in-javascript-code/)
 * Status: not resolved