WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/20/2013 10:49:36 PM (7 years ago)
Author:
DrewAPicture
Message:

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

Props dustyf.
See #25229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/feed-atom.php

    r22431 r25531  
    1515  xml:lang="<?php bloginfo_rss( 'language' ); ?>"
    1616  xml:base="<?php bloginfo_rss('url') ?>/wp-atom.php"
    17   <?php do_action('atom_ns'); ?>
     17  <?php
     18  /**
     19   * Fires at end of the Atom feed root to add namespaces.
     20   *
     21   * @since 2.0.0
     22   */
     23  do_action( 'atom_ns' );
     24  ?>
    1825 >
    1926    <title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
     
    2633    <link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" />
    2734
    28     <?php do_action('atom_head'); ?>
    29     <?php while (have_posts()) : the_post(); ?>
     35    <?php
     36    /**
     37     * Fires just before the first Atom feed entry.
     38     *
     39     * @since 2.0.0
     40     */
     41    do_action( 'atom_head' );
     42
     43    while ( have_posts() ) : the_post();
     44    ?>
    3045    <entry>
    3146        <author>
     
    3449            <uri><?php the_author_meta('url')?></uri>
    3550            <?php endif;
    36             do_action('atom_author'); ?>
     51
     52            /**
     53             * Fires at the end of each Atom feed author entry.
     54             *
     55             * @since 3.2.0
     56             */
     57            do_action( 'atom_author' );
     58        ?>
    3759        </author>
    3860        <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
     
    4668        <content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss() ?>"><![CDATA[<?php the_content_feed('atom') ?>]]></content>
    4769<?php endif; ?>
    48 <?php atom_enclosure(); ?>
    49 <?php do_action('atom_entry'); ?>
     70    <?php atom_enclosure();
     71    /**
     72     * Fires at the end of each Atom feed item.
     73     *
     74     * @since 2.0.0
     75     */
     76    do_action( 'atom_entry' );
     77        ?>
    5078        <link rel="replies" type="<?php bloginfo_rss('html_type'); ?>" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/>
    5179        <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()?>"/>
Note: See TracChangeset for help on using the changeset viewer.