mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
Deprecate trackback_rdf(). fixes #11139
git-svn-id: http://svn.automattic.com/wordpress/trunk@13991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cb6f8774b1
commit
1a4a30fcf1
@ -735,33 +735,6 @@ function trackback_url( $deprecated_echo = true ) {
|
|||||||
return get_trackback_url();
|
return get_trackback_url();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Generates and displays the RDF for the trackback information of current post.
|
|
||||||
*
|
|
||||||
* @since 0.71
|
|
||||||
*
|
|
||||||
* @param int $deprecated Not used (Was $timezone = 0)
|
|
||||||
*/
|
|
||||||
function trackback_rdf($deprecated = '') {
|
|
||||||
if ( !empty( $deprecated ) )
|
|
||||||
_deprecated_argument( __FUNCTION__, '2.5' );
|
|
||||||
|
|
||||||
if (stripos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') === false) {
|
|
||||||
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>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the current post is open for comments.
|
* Whether the current post is open for comments.
|
||||||
*
|
*
|
||||||
|
@ -2500,3 +2500,16 @@ function funky_javascript_fix($text) {
|
|||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generates and displays the RDF for the trackback information of current post.
|
||||||
|
*
|
||||||
|
* @since 0.71
|
||||||
|
* @deprecated 3.0.0
|
||||||
|
*
|
||||||
|
* @param int $deprecated Not used (Was $timezone = 0)
|
||||||
|
*/
|
||||||
|
function trackback_rdf($deprecated = '') {
|
||||||
|
_deprecated_function( __FUNCTION__, '3.0' );
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user