Inline documentation for hooks in wp-includes/feed-rdf.php.

props dustyf.
see #25229.

git-svn-id: https://develop.svn.wordpress.org/trunk@25479 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-09-18 16:16:59 +00:00
parent 959be34093
commit 57413deb42

View File

@ -16,7 +16,14 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
<?php do_action('rdf_ns'); ?>
<?php
/**
* Fires at the end of the feed root to add namespaces.
*
* @since 2.0.0
*/
do_action( 'rdf_ns' );
?>
>
<channel rdf:about="<?php bloginfo_rss("url") ?>">
<title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
@ -24,9 +31,17 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
<description><?php bloginfo_rss('description') ?></description>
<dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date>
<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
<?php //duplicate_hook ?>
<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
<?php do_action('rdf_header'); ?>
<?php
/**
* Fires at the end of the RDF feed header.
*
* @since 2.0.0
*/
do_action( 'rdf_header' );
?>
<items>
<rdf:Seq>
<?php while (have_posts()): the_post(); ?>
@ -48,7 +63,14 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<content:encoded><![CDATA[<?php the_content_feed('rdf') ?>]]></content:encoded>
<?php endif; ?>
<?php do_action('rdf_item'); ?>
<?php
/**
* Fires at the end of each RDF feed item.
*
* @since 2.0.0
*/
do_action( 'rdf_item' );
?>
</item>
<?php endwhile; ?>
</rdf:RDF>