Make WordPress Core

Ticket #25229: wp-includes-feed-rdf.diff

File wp-includes-feed-rdf.diff, 1.7 KB (added by dustyf, 11 years ago)

First pass at wp-includes/feed-rdf.diff

  • wp-includes/feed-rdf.php

     
    1616        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    1717        xmlns:admin="http://webns.net/mvcb/"
    1818        xmlns:content="http://purl.org/rss/1.0/modules/content/"
    19         <?php do_action('rdf_ns'); ?>
     19        <?php
     20        /**
     21         * Fired at the end of the feed root to add namespaces.
     22         *
     23         * @since 2.0.0
     24         */
     25        do_action('rdf_ns');
     26        ?>
    2027>
    2128<channel rdf:about="<?php bloginfo_rss("url") ?>">
    2229        <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
    2330        <link><?php bloginfo_rss('url') ?></link>
    2431        <description><?php bloginfo_rss('description') ?></description>
    2532        <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date>
     33        <?php //duplicate_hook ?>
    2634        <sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
     35        <?php //duplicate_hook ?>
    2736        <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
    2837        <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    29         <?php do_action('rdf_header'); ?>
     38        <?php
     39        /**
     40         * Fired at the end of the RDF feed header.
     41         *
     42         * @since 2.0.0
     43         */
     44        do_action('rdf_header');
     45        ?>
    3046        <items>
    3147                <rdf:Seq>
    3248                <?php while (have_posts()): the_post(); ?>
     
    4864        <description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
    4965        <content:encoded><![CDATA[<?php the_content_feed('rdf') ?>]]></content:encoded>
    5066<?php endif; ?>
    51         <?php do_action('rdf_item'); ?>
     67        <?php
     68        /**
     69         * Fired at the end of each RDF feed item.
     70         *
     71         * @since 2.0.0
     72         */
     73        do_action('rdf_item');
     74        ?>
    5275</item>
    5376<?php endwhile;  ?>
    5477</rdf:RDF>