Advertisements

trackback_rdf

Definition:
function trackback_rdf( $deprecated = '' ) {}

Generates and displays the RDF for the trackback information of current post.
Deprecated in 3.0.0, and restored in 3.0.1.

Parameters

  • int $deprecated: Not used (Was $timezone = 0)

Source code

function trackback_rdf( $deprecated = '' ) {

	if ( !empty( $deprecated ) )

		_deprecated_argument( __FUNCTION__, '2.5' );



	if ( false !== stripos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') )

		return;



	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('--', '--', wptexturize(strip_tags(get_the_title()))).'"'."\n";

	echo '    trackback:ping="'.get_trackback_url().'"'." />\n";

	echo '</rdf:RDF>';

}

3071

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: