Make WordPress Core

Changeset 15363


Ignore:
Timestamp:
07/03/2010 05:55:04 AM (14 years ago)
Author:
nacin
Message:

Restore trackback_rdf(). reverts [13991]. fixes #11139 for trunk.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r15355 r15363  
    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 * Deprecated in 3.0.0, and restored in 3.0.1.
     742 *
     743 * @since 0.71
     744 *
     745 * @param int $deprecated Not used (Was $timezone = 0)
     746 */
     747function trackback_rdf( $deprecated = '' ) {
     748    if ( !empty( $deprecated ) )
     749        _deprecated_argument( __FUNCTION__, '2.5' );
     750
     751    if ( false !== stripos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') )
     752        return;
     753
     754    echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     755            xmlns:dc="http://purl.org/dc/elements/1.1/"
     756            xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
     757        <rdf:Description rdf:about="';
     758    the_permalink();
     759    echo '"'."\n";
     760    echo '    dc:identifier="';
     761    the_permalink();
     762    echo '"'."\n";
     763    echo '    dc:title="'.str_replace('--', '&#x2d;&#x2d;', wptexturize(strip_tags(get_the_title()))).'"'."\n";
     764    echo '    trackback:ping="'.get_trackback_url().'"'." />\n";
     765    echo '</rdf:RDF>';
    736766}
    737767
  • trunk/wp-includes/deprecated.php

    r15344 r15363  
    25032503
    25042504/**
    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  */
    2512 function trackback_rdf($deprecated = '') {
    2513     _deprecated_function( __FUNCTION__, '3.0' );
    2514     return '';
    2515 }
    2516 
    2517 /**
    25182505 * Checks that the taxonomy name exists.
    25192506 *
Note: See TracChangeset for help on using the changeset viewer.