WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/04/2010 10:04:56 AM (10 years ago)
Author:
nacin
Message:

Deprecate trackback_rdf(). fixes #11139

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r13939 r13991  
    734734    else
    735735        return get_trackback_url();
    736 }
    737 
    738 /**
    739  * Generates and displays the RDF for the trackback information of current post.
    740  *
    741  * @since 0.71
    742  *
    743  * @param int $deprecated Not used (Was $timezone = 0)
    744  */
    745 function trackback_rdf($deprecated = '') {
    746     if ( !empty( $deprecated ) )
    747         _deprecated_argument( __FUNCTION__, '2.5' );
    748 
    749     if (stripos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') === false) {
    750         echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    751                 xmlns:dc="http://purl.org/dc/elements/1.1/"
    752                 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
    753             <rdf:Description rdf:about="';
    754         the_permalink();
    755         echo '"'."\n";
    756         echo '    dc:identifier="';
    757         the_permalink();
    758         echo '"'."\n";
    759         echo '    dc:title="'.str_replace('--', '&#x2d;&#x2d;', wptexturize(strip_tags(get_the_title()))).'"'."\n";
    760         echo '    trackback:ping="'.get_trackback_url().'"'." />\n";
    761         echo '</rdf:RDF>';
    762     }
    763736}
    764737
Note: See TracChangeset for help on using the changeset viewer.