WordPress.org

Ready to get started?Download WordPress

Forums

Disqus Comment System
RSS Feed validation error (1 post)

  1. jyee
    Member
    Posted 3 years ago #

    After installing Disqus 2.60 (and possibly earlier and later versions), your site's RSS feed will not be valid (e.g. try http://feedvalidator.org) and will generate an error about <slash:comments> or "Undefined slash_comments element: span"

    The problem is that dsq_comments_number() in the disqus.php file modifies the count to include the html <span> element. Strict RSS rules state that slash:comments only contains a non-negative integer... so the inclusion of html causes an error.

    To resolve the issue, you need to change
    if ( dsq_can_replace() ) {
    to
    if ( dsq_can_replace() && !is_feed() ) {
    in the dsq_comments_number() function at around line 694 in disqus.php

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic