Make WordPress Core

Changeset 32567


Ignore:
Timestamp:
05/24/2015 05:18:59 AM (9 years ago)
Author:
wonderboymusic
Message:

Add missing doc blocks to comment-template.php.

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-template.php

    r32511 r32567  
    6464     * @param int    $comment_ID The comment ID.
    6565     */
    66     $author = apply_filters( 'comment_author', $author, $comment_ID );
    67     echo $author;
     66    echo apply_filters( 'comment_author', $author, $comment_ID );
    6867}
    6968
     
    158157 * @param string $before   Optional. Text or HTML to display before the email link. Default empty.
    159158 * @param string $after    Optional. Text or HTML to display after the email link. Default empty.
     159 * @return string
    160160 */
    161161function get_comment_author_email_link( $linktext = '', $before = '', $after = '' ) {
     
    226226 * @since 0.71
    227227 *
    228  * @see get_comment_author_link() Echoes result
    229  *
    230228 * @param int $comment_ID ID of the comment for which to print the author's
    231229 *                        link. Default current comment.
     
    391389 * @param bool         $echo       Optional. Whether to cho or return the output.
    392390 *                                 Default true.
     391 * @return string|null
    393392 */
    394393function comment_class( $class = '', $comment_id = null, $post_id = null, $echo = true ) {
     
    405404 *
    406405 * @since 2.7.0
     406 *
     407 * @global int $comment_alt
     408 * @global int $comment_depth
     409 * @global int $comment_thread_alt
    407410 *
    408411 * @param string|array $class      Optional. One or more classes to add to the class list. Default empty.
     
    596599 * @since 1.5.0
    597600 *
     601 * @global object $comment
     602 *
    598603 * @return int The comment ID.
    599604 */
     
    628633 *
    629634 * @see get_page_of_comment()
     635 *
     636 * @global WP_Rewrite $wp_rewrite
     637 * @global bool       $in_comment_loop
    630638 *
    631639 * @param mixed $comment Comment to retrieve. Default current comment.
     
    857865 *
    858866 * @since 1.5.0
     867 *
     868 * @global object $comment
    859869 *
    860870 * @param string $d         Optional. The format of the time. Default user's settings.
     
    11161126 * halted. It is advised for that reason, that the default theme is not deleted.
    11171127 *
    1118  * @todo Document globals
    11191128 * @uses $withcomments Will not try to get the comments if the post has none.
    11201129 *
    11211130 * @since 1.5.0
     1131 *
     1132 * @global WP_Query $wp_query
     1133 * @global WP_Post  $post
     1134 * @global wpdb     $wpdb
     1135 * @global int      $id
     1136 * @global object   $comment
     1137 * @global string   $user_login
     1138 * @global int      $user_ID
     1139 * @global string   $user_identity
     1140 * @global bool     $overridden_cpage
    11221141 *
    11231142 * @param string $file              Optional. The file to load. Default '/comments.php'.
     
    13711390 */
    13721391function get_comment_reply_link( $args = array(), $comment = null, $post = null ) {
    1373 
    13741392    $defaults = array(
    13751393        'add_below'     => 'comment',
     
    15511569 *
    15521570 * @param string $text Optional. Text to display for cancel reply link. Default empty.
     1571 * @return string
    15531572 */
    15541573function get_cancel_comment_reply_link( $text = '' ) {
     
    16281647 *
    16291648 * @since 2.7.0
     1649 *
     1650 * @global object $comment
    16301651 *
    16311652 * @param string $noreplytext  Optional. Text to display when not replying to a comment.
     
    16871708     *
    16881709     * @since 2.7.0
     1710     *
     1711     * @global int $comment_depth
    16891712     *
    16901713     * @param string $output Passed by reference. Used to append additional content.
     
    17151738     * @since 2.7.0
    17161739     *
     1740     * @global int $comment_depth
     1741     *
    17171742     * @param string $output Passed by reference. Used to append additional content.
    17181743     * @param int    $depth  Depth of comment.
     
    17951820     * @see Walker::start_el()
    17961821     * @see wp_list_comments()
     1822     *
     1823     * @global int    $comment_depth
     1824     * @global object $comment
    17971825     *
    17981826     * @param string $output  Passed by reference. Used to append additional content.
     
    19982026 *
    19992027 * @see WP_Query->comments
     2028 *
     2029 * @global WP_Query $wp_query
     2030 * @global int      $comment_alt
     2031 * @global int      $comment_depth
     2032 * @global int      $comment_thread_alt
     2033 * @global bool     $overridden_cpage
     2034 * @global bool     $in_comment_loop
    20002035 *
    20012036 * @param string|array $args {
Note: See TracChangeset for help on using the changeset viewer.