trackback_rdf

Generate and display the RDF for the trackback information of current post.

Description

trackback_rdf( (string) $deprecated = '' ); 

Deprecated in 3.0.0, and restored in 3.0.1.

Parameters (1)

0. $deprecated — Optional. (string) => ''
Not used (Was $timezone = 0).

Usage

  1. if ( !function_exists( 'trackback_rdf' ) ) { 
  2. require_once ABSPATH . WPINC . '/comment-template.php'; 
  3.  
  4. // Not used (Was $timezone = 0). 
  5. $deprecated = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = trackback_rdf($deprecated); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/comment-template.php  
  1. function trackback_rdf( $deprecated = '' ) { 
  2. if ( ! empty( $deprecated ) ) { 
  3. _deprecated_argument( __FUNCTION__, '2.5.0' ); 
  4.  
  5. if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && false !== stripos( $_SERVER['HTTP_USER_AGENT'], 'W3C_Validator' ) ) { 
  6. return; 
  7.  
  8. echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
  9. xmlns:dc="http://purl.org/dc/elements/1.1/" 
  10. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"> 
  11. <rdf:Description rdf:about="'; 
  12. echo '"'."\n"; 
  13. echo ' dc:identifier="'; 
  14. echo '"'."\n"; 
  15. echo ' dc:title="'.str_replace('--', '--', wptexturize(strip_tags(get_the_title()))).'"'."\n"; 
  16. echo ' trackback:ping="'.get_trackback_url().'"'." />\n"; 
  17. echo '</rdf:RDF>';