WordPress.org

Make WordPress Core

Changeset 26863


Ignore:
Timestamp:
12/21/13 20:21:20 (3 years ago)
Author:
DrewAPicture
Message:

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

Props dustyf, piontkowski, kpdesign.
Fixes #26532.

File:
1 edited

Legend:

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

    r25868 r26863  
    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 
     
    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(); 
     
    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> 
Note: See TracChangeset for help on using the changeset viewer.