Make WordPress Core

Ticket #26532: wp-includes-feed-atom-comments.diff

File wp-includes-feed-atom-comments.diff, 1.9 KB (added by piontkowski, 10 years ago)
  • wp-includes/feed-atom-comments.php

     
    1212        xmlns="http://www.w3.org/2005/Atom"
    1313        xml:lang="<?php bloginfo_rss( 'language' ); ?>"
    1414        xmlns:thr="http://purl.org/syndication/thread/1.0"
    15         <?php do_action('atom_ns'); do_action('atom_comments_ns'); ?>
     15        <?php
     16                /** This action is documented in wp-includes/feed-atom.php */
     17                do_action( 'atom_ns' );
     18               
     19                /**
     20                 * Fires at the end of the Atom comments feed root to add namespaces.
     21                 *
     22                 * @since 2.8.0
     23                 */
     24                do_action( 'atom_comments_ns' );
     25        ?>
    1626>
    1727        <title type="text"><?php
    1828                if ( is_singular() )
     
    3949        <link rel="self" type="application/atom+xml" href="<?php bloginfo_rss('comments_atom_url'); ?>" />
    4050        <id><?php bloginfo_rss('comments_atom_url'); ?></id>
    4151<?php } ?>
    42 <?php do_action('comments_atom_head'); ?>
     52<?php
     53        /**
     54         * Fires at the end of the Atom comment feed header.
     55         *
     56         * @since 2.8.0
     57         */
     58        do_action( 'comments_atom_head' );
     59?>
    4360<?php
    4461if ( have_comments() ) : while ( have_comments() ) : the_comment();
    4562        $comment_post = $GLOBALS['post'] = get_post( $comment->comment_post_ID );
     
    8097?>
    8198                <thr:in-reply-to ref="<?php comment_guid($parent_comment) ?>" href="<?php echo get_comment_link($parent_comment) ?>" type="<?php bloginfo_rss('html_type'); ?>" />
    8299<?php endif;
    83         do_action('comment_atom_entry', $comment->comment_ID, $comment_post->ID);
     100        /**
     101         * Fires at the end of each Atom comment feed item.
     102         *
     103         * @since 2.2.0
     104         *
     105         * @param int $comment->comment_ID The ID of the comment being displayed.
     106         * @param int $comment_post->ID    The ID of the post the comment is connected to.
     107         */
     108        do_action( 'comment_atom_entry', $comment->comment_ID, $comment_post->ID );
    84109?>
    85110        </entry>
    86111<?php endwhile; endif; ?>