Make WordPress Core

Ticket #27374: comment-template.diff

File comment-template.diff, 587 bytes (added by joostdevalk, 10 years ago)

Comment Template Patch

  • wp-includes/comment-template.php

     
    944944        if ( !empty( $deprecated ) )
    945945                _deprecated_argument( __FUNCTION__, '2.5' );
    946946
    947         if ( false !== stripos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') )
     947        if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && false !== stripos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') )
    948948                return;
    949949
    950950        echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"