• When I edit a comment multiple times, after the 2nd edit, the code, like <p>s are turned into HTML encoding and visible on the website.

    E.g.
    Original correct comment:

    <p>NO WHISTLING!<br />
    **anonymous whistles**<br />
    I SAID NO WHISTLING!<br />
    **anonymous whistles**<br />
    THATS IT!<br />
    **everybody runs!**
    </p>
    Here, the HTML correctly translates into paragraphs and line breaks.

    After second edit:

    View this image to see.

    The HTML seems to have duplicated: one is actual HTML; the other is HTML with symbols replaced HTML encoding. As a result, viewers see <br> and <p>.

    What’s going on here?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter thematthewrobertson

    (@thematthewrobertson)

    Apparently commenting out this line

    $comment->comment_content = format_to_edit( $comment->comment_content );

    In wp-admin/admin-functions.php at line 405 seems to solve the problem.

    I’m having the same problem — however, commenting out that line doesn’t seem to fix it.

    Any other ideas?

    I am also having this problem. Lot of my comments are obscured or corrupted after being posted.

    example
    another example

    In the database the comment shows up perfectly fine. Even editing the comment works but the more I edit it the more HTML gets added.

    Updated to 2.2.2. Still have the same problem with garbled comments. The comment emails on the admin side barely show up. A refresh basically generates random ASCII chars.

    Si ;n 05;strS 9;arec row@&# 121;aho 11;.c& #111;m

    This is the kind of stuff I have in the email field for comments. Refreshing changes it into another random string.

    Anyone else havin this problem or have a fix for it?

    Still having this. Would love for someone to take a look at it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Editing comments reveals HTML on site’ is closed to new replies.