[resolved] wp_list_comments bug (and it's fix) (1 post)

  1. epicor
    Posted 5 years ago #

    According the the codex this issue has been around since 2.7, so it's crazy that I'm just bumping into it.

    If you look at the output from wp_list_comments() you will see the li items get echoed with bad html in the class attribute.

    <li class="class=" comment byuser comment-author-admin bypostauthor even thread-even depth-1 "">

    obvious issue is obvious right?

    anyway, the issue is on line 282 of comment-template.php. Just delete the class=. preceding the join().

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.