WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-includes/comment-template.php

    r15148 r15434  
    737737
    738738/**
     739 * Generates and displays the RDF for the trackback information of current post.
     740 *
     741 * Deprecated in 3.0.0, and restored in 3.0.1.
     742 *
     743 * @since 0.71
     744 *
     745 * @param int $deprecated Not used (Was $timezone = 0)
     746 */
     747function trackback_rdf( $deprecated = '' ) {
     748    if ( !empty( $deprecated ) )
     749        _deprecated_argument( __FUNCTION__, '2.5' );
     750
     751    echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     752            xmlns:dc="http://purl.org/dc/elements/1.1/"
     753            xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
     754        <rdf:Description rdf:about="';
     755    the_permalink();
     756    echo '"'."\n";
     757    echo '    dc:identifier="';
     758    the_permalink();
     759    echo '"'."\n";
     760    echo '    dc:title="'.str_replace('--', '&#x2d;&#x2d;', wptexturize(strip_tags(get_the_title()))).'"'."\n";
     761    echo '    trackback:ping="'.get_trackback_url().'"'." />\n";
     762    echo '</rdf:RDF>';
     763}
     764
     765/**
    739766 * Whether the current post is open for comments.
    740767 *
     
    891918        require( TEMPLATEPATH .  $file );
    892919    else // Backward compat code will be removed in a future release
    893         require( WPINC . '/theme-compat/comments.php');
     920        require( ABSPATH . WPINC . '/theme-compat/comments.php');
    894921}
    895922
Note: See TracChangeset for help on using the changeset viewer.