Make WordPress Core

Ticket #11734: 11734-2.patch

File 11734-2.patch, 1.4 KB (added by brokenflipside, 8 years ago)
  • wp-includes/comment-template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    11251125                return;
    11261126        }
    11271127
    1128         echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     1128        $permalink = apply_filters( 'the_permalink', get_permalink() );
     1129
     1130        $output  = '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    11291131                        xmlns:dc="http://purl.org/dc/elements/1.1/"
    11301132                        xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
    11311133                <rdf:Description rdf:about="';
    1132         the_permalink();
    1133         echo '"'."\n";
    1134         echo '    dc:identifier="';
    1135         the_permalink();
    1136         echo '"'."\n";
    1137         echo '    dc:title="'.str_replace('--', '&#x2d;&#x2d;', wptexturize(strip_tags(get_the_title()))).'"'."\n";
    1138         echo '    trackback:ping="'.get_trackback_url().'"'." />\n";
    1139         echo '</rdf:RDF>';
     1134        $output .= esc_url( $permalink );
     1135        $output .= '"'."\n";
     1136        $output .= '    dc:identifier="';
     1137        $output .= esc_url( $permalink );
     1138        $output .= '"'."\n";
     1139        $output .= '    dc:title="' . esc_attr( strip_tags( get_the_title() ) ) . '"' . "\n";
     1140        $output .= '    trackback:ping="' . esc_url( get_trackback_url() ) . '"' . " />\n";
     1141        $output .= '</rdf:RDF>';
     1142
     1143        echo str_replace( '--', '&#x2d;&#x2d;', $output );
    11401144}
    11411145
    11421146/**