mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Inline documentation for hooks in wp-includes/feed-rdf.php.
props dustyf. see #25229. Built from https://develop.svn.wordpress.org/trunk@25479 git-svn-id: http://core.svn.wordpress.org/trunk@25400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
794414c412
commit
d4672e7f2c
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user