]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/comment-template.php
Wordpress 3.0.3-scripts
[autoinstalls/wordpress.git] / wp-includes / comment-template.php
index 4bc9edb8d5f77c64371a621aead4a2324f128dcc..d3ee190658ad767085e70d0158c80e4ac9516ffa 100644 (file)
@@ -735,6 +735,33 @@ function trackback_url( $deprecated_echo = true ) {
                return get_trackback_url();
 }
 
+/**
+ * Generates and displays the RDF for the trackback information of current post.
+ *
+ * Deprecated in 3.0.0, and restored in 3.0.1.
+ *
+ * @since 0.71
+ *
+ * @param int $deprecated Not used (Was $timezone = 0)
+ */
+function trackback_rdf( $deprecated = '' ) {
+       if ( !empty( $deprecated ) )
+               _deprecated_argument( __FUNCTION__, '2.5' );
+
+       echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+                       xmlns:dc="http://purl.org/dc/elements/1.1/"
+                       xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
+               <rdf:Description rdf:about="';
+       the_permalink();
+       echo '"'."\n";
+       echo '    dc:identifier="';
+       the_permalink();
+       echo '"'."\n";
+       echo '    dc:title="'.str_replace('--', '&#x2d;&#x2d;', wptexturize(strip_tags(get_the_title()))).'"'."\n";
+       echo '    trackback:ping="'.get_trackback_url().'"'." />\n";
+       echo '</rdf:RDF>';
+}
+
 /**
  * Whether the current post is open for comments.
  *
@@ -890,7 +917,7 @@ function comments_template( $file = '/comments.php', $separate_comments = false
        elseif ( file_exists( TEMPLATEPATH . $file ) )
                require( TEMPLATEPATH .  $file );
        else // Backward compat code will be removed in a future release
-               require( WPINC . '/theme-compat/comments.php');
+               require( ABSPATH . WPINC . '/theme-compat/comments.php');
 }
 
 /**