Support » Requests and Feedback » template_rdf not working in 2.2

  • template_rdf() isn’t working correctly. Line 242 in comment-template.php:

    if (strpos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') !== false) {

    Replacing it with:

    if (!stristr($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator')) {

    fixes the problem.

    Basically it was working the the opposite of what was expected. The trackback code was appearing when trying to validating the page and wasn;t appearing otherwise.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘template_rdf not working in 2.2’ is closed to new replies.