1 | Index: wp-includes/feed-atom.php |
---|
2 | =================================================================== |
---|
3 | --- wp-includes/feed-atom.php (revision 25365) |
---|
4 | +++ wp-includes/feed-atom.php (working copy) |
---|
5 | @@ -14,7 +14,14 @@ |
---|
6 | xmlns:thr="http://purl.org/syndication/thread/1.0" |
---|
7 | xml:lang="<?php bloginfo_rss( 'language' ); ?>" |
---|
8 | xml:base="<?php bloginfo_rss('url') ?>/wp-atom.php" |
---|
9 | - <?php do_action('atom_ns'); ?> |
---|
10 | + <?php |
---|
11 | + /** |
---|
12 | + * Fired at the end of the feed root to add namespaces. |
---|
13 | + * |
---|
14 | + * @since 2.0.0 |
---|
15 | + */ |
---|
16 | + do_action('atom_ns'); |
---|
17 | + ?> |
---|
18 | > |
---|
19 | <title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title> |
---|
20 | <subtitle type="text"><?php bloginfo_rss("description") ?></subtitle> |
---|
21 | @@ -25,7 +32,14 @@ |
---|
22 | <id><?php bloginfo('atom_url'); ?></id> |
---|
23 | <link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" /> |
---|
24 | |
---|
25 | - <?php do_action('atom_head'); ?> |
---|
26 | + <?php |
---|
27 | + /** |
---|
28 | + * Fired at the end of the Atom feed header. |
---|
29 | + * |
---|
30 | + * @since 2.0.0 |
---|
31 | + */ |
---|
32 | + do_action('atom_head'); |
---|
33 | + ?> |
---|
34 | <?php while (have_posts()) : the_post(); ?> |
---|
35 | <entry> |
---|
36 | <author> |
---|
37 | @@ -33,6 +47,11 @@ |
---|
38 | <?php $author_url = get_the_author_meta('url'); if ( !empty($author_url) ) : ?> |
---|
39 | <uri><?php the_author_meta('url')?></uri> |
---|
40 | <?php endif; |
---|
41 | + /** |
---|
42 | + * Fired at the end of the Atom feed author entry to add author data. |
---|
43 | + * |
---|
44 | + * @since 3.2.0 |
---|
45 | + */ |
---|
46 | do_action('atom_author'); ?> |
---|
47 | </author> |
---|
48 | <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title> |
---|
49 | @@ -46,7 +65,14 @@ |
---|
50 | <content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss() ?>"><![CDATA[<?php the_content_feed('atom') ?>]]></content> |
---|
51 | <?php endif; ?> |
---|
52 | <?php atom_enclosure(); ?> |
---|
53 | -<?php do_action('atom_entry'); ?> |
---|
54 | +<?php |
---|
55 | +/** |
---|
56 | + * Fired at the end of each Atom feed item. |
---|
57 | + * |
---|
58 | + * @since 2.0.0 |
---|
59 | + */ |
---|
60 | +do_action('atom_entry'); |
---|
61 | +?> |
---|
62 | <link rel="replies" type="<?php bloginfo_rss('html_type'); ?>" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/> |
---|
63 | <link rel="replies" type="application/atom+xml" href="<?php echo esc_url( get_post_comments_feed_link(0, 'atom') ); ?>" thr:count="<?php echo get_comments_number()?>"/> |
---|
64 | <thr:total><?php echo get_comments_number()?></thr:total> |
---|