Make WordPress Core

Changeset 13991


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

Deprecate trackback_rdf(). fixes #11139

Location:
trunk/wp-includes
Files:
2 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
  • trunk/wp-includes/deprecated.php

    r13988 r13991  
    25012501    return $text;
    25022502}
     2503
     2504/**
     2505 * Generates and displays the RDF for the trackback information of current post.
     2506 *
     2507 * @since 0.71
     2508 * @deprecated 3.0.0
     2509 *
     2510 * @param int $deprecated Not used (Was $timezone = 0)
     2511 */
     2512function trackback_rdf($deprecated = '') {
     2513    _deprecated_function( __FUNCTION__, '3.0' );
     2514    return '';
     2515}
Note: See TracChangeset for help on using the changeset viewer.