Ticket #11734: comment-template.php.patch

File comment-template.php.patch, 912 bytes (added by dwright, 3 years ago)

At revision 12940, convert '--' to hex

  • wp-includes/comment-template.php

     
    750750                                xmlns:dc="http://purl.org/dc/elements/1.1/" 
    751751                                xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"> 
    752752                        <rdf:Description rdf:about="'; 
    753                 the_permalink(); 
     753                str_replace('--', '&#45;&#45;', the_permalink()); 
    754754                echo '"'."\n"; 
    755755                echo '    dc:identifier="'; 
    756                 the_permalink(); 
     756                str_replace('--', '&#45;&#45;', the_permalink()); 
    757757                echo '"'."\n"; 
    758758                echo '    dc:title="'.str_replace('--', '&#x2d;&#x2d;', wptexturize(strip_tags(get_the_title()))).'"'."\n"; 
    759                 echo '    trackback:ping="'.get_trackback_url().'"'." />\n"; 
     759                echo '    trackback:ping="'.str_replace('--', '&#45;&#45;', get_trackback_url()).'"'." />\n"; 
    760760                echo '</rdf:RDF>'; 
    761761        } 
    762762}