Make WordPress Core

Ticket #26532: 26532.diff

File 26532.diff, 1.9 KB (added by DrewAPicture, 11 years ago)

2nd pass

  • src/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 inside the feed tag in the Atom comment feed.
     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_id      ID of the current comment.
     106         * @param int $comment_post_id ID of the post the current comment is connected to.
     107         */
     108        do_action( 'comment_atom_entry', $comment->comment_ID, $comment_post->ID );
    84109?>
    85110        </entry>
    86111<?php endwhile; endif; ?>