From fb83a22b94f48e7cae7475004c7a979f12837bba Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 3 Jul 2010 05:55:04 +0000 Subject: [PATCH] Restore trackback_rdf(). reverts [13991]. fixes #11139 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@15363 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment-template.php | 30 ++++++++++++++++++++++++++++++ wp-includes/deprecated.php | 13 ------------- 2 files changed, 30 insertions(+), 13 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index ecc39162f4..4eb7a2c7a0 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -735,6 +735,36 @@ 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' ); + + if ( false !== stripos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') ) + return; + + echo ' + \n"; + echo ''; +} + /** * Whether the current post is open for comments. * diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 88118b0c1b..0895e0e1b1 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -2501,19 +2501,6 @@ function funky_javascript_fix($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 ''; -} - /** * Checks that the taxonomy name exists. *