WordPress.org

Make WordPress Core

Changeset 30111


Ignore:
Timestamp:
10/30/2014 03:51:28 AM (6 years ago)
Author:
DrewAPicture
Message:

Update the changelogs for the comment hook parameters added in [30092].

Parameters were added to the get_comment_author, comment_author, get_comment_author_email, author_email, comment_email, get_comment_author_link, get_comment_author_IP, get_comment_author_url, comment_url, get_comment_excerpt, comment_excerpt, get_comment_ID, and get_comment_type filters.

Fixes #22380.

File:
1 edited

Legend:

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

    r30092 r30111  
    3636     *
    3737     * @since 1.5.0
     38     * @since 4.1.0 The `$comment_ID` and `$comment` parameters were added.
    3839     *
    3940     * @param string $author     The comment author's username.
    40      * @param int    $comment_ID The comment ID
    41      * @param object $comment    The comment
     41     * @param int    $comment_ID The comment ID.
     42     * @param object $comment    The comment object.
    4243     */
    4344    return apply_filters( 'get_comment_author', $author, $comment_ID, $comment );
     
    5758     *
    5859     * @since 1.2.0
    59      *
    60      * @param string $author The comment author's username.
    61      * @param int    $comment_ID The comment ID
     60     * @since 4.1.0 The `$comment_ID` parameter was added.
     61     *
     62     * @param string $author     The comment author's username.
     63     * @param int    $comment_ID The comment ID.
    6264     */
    6365    $author = apply_filters( 'comment_author', $author, $comment_ID );
     
    7981     *
    8082     * @since 1.5.0
     83     * @since 4.1.0 The `$comment_ID` and `$comment` parameters were added.
    8184     *
    8285     * @param string $comment_author_email The comment author's email address.
    83      * @param int    $comment_ID           The comment ID
    84      * @param object $comment              The comment
     86     * @param int    $comment_ID           The comment ID.
     87     * @param object $comment              The comment object.
    8588     */
    8689    return apply_filters( 'get_comment_author_email', $comment->comment_author_email, $comment_ID, $comment );
     
    106109     *
    107110     * @since 1.2.0
     111     * @since 4.1.0 The `$comment_ID` parameter was added.
    108112     *
    109113     * @param string $author_email The comment author's email address.
    110      * @param int    $comment_ID   The comment ID
     114     * @param int    $comment_ID   The comment ID.
    111115     */
    112116    echo apply_filters( 'author_email', $author_email, $comment_ID );
     
    161165     *
    162166     * @since 1.2.0
     167     * @since 4.1.0 The `$comment` parameter was added.
    163168     *
    164169     * @param string $comment_author_email The comment author's email address.
    165      * @param object $comment              The comment
     170     * @param object $comment              The comment object.
    166171     */
    167172    $email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );
     
    202207     *
    203208     * @since 1.5.0
    204      *
    205      * @param string $return      The HTML-formatted comment author link.
    206      *                            Empty for an invalid URL.
    207      * @param int    $comment_ID  The comment ID
     209     * @since 4.1.0 The `$author` and `$comment_ID` parameters were added.
     210     *
     211     * @param string $return     The HTML-formatted comment author link.
     212     *                           Empty for an invalid URL.
     213     * @param string $author     The comment author's username.
     214     * @param int    $comment_ID The comment ID.
    208215     */
    209216    return apply_filters( 'get_comment_author_link', $return, $author, $comment_ID );
     
    240247     *
    241248     * @since 1.5.0
     249     * @since 4.1.0 The `$comment_ID` and `$comment` parameters were added.
    242250     *
    243251     * @param string $comment_author_IP The comment author's IP address.
    244      * @param int    $comment_ID        The comment ID
    245      * @param object $comment           The comment
     252     * @param int    $comment_ID        The comment ID.
     253     * @param object $comment           The comment object.
    246254     */
    247255    return apply_filters( 'get_comment_author_IP', $comment->comment_author_IP, $comment_ID, $comment );
     
    277285     *
    278286     * @since 1.5.0
    279      *
    280      * @param string $url           The comment author's URL.
    281      * @param int    $comment_ID    The comment ID
    282      * @param object $comment       The comment
     287     * @since 4.1.0 The `$comment_ID` and `$comment` parameters were added.
     288     *
     289     * @param string $url        The comment author's URL.
     290     * @param int    $comment_ID The comment ID.
     291     * @param object $comment    The comment object.
    283292     */
    284293    return apply_filters( 'get_comment_author_url', $url, $comment_ID, $comment );
     
    299308     *
    300309     * @since 1.2.0
     310     * @since 4.1.0 The `$comment_ID` parameter was added.
    301311     *
    302312     * @param string $author_url The comment author's URL.
    303      * @param int    $comment_ID The comment ID
     313     * @param int    $comment_ID The comment ID.
    304314     */
    305315    echo apply_filters( 'comment_url', $author_url, $comment_ID );
     
    543553     *
    544554     * @since 1.5.0
    545      *
    546      * @param string $excerpt       The comment excerpt text.
    547      * @param int    $comment_ID    The comment ID
    548      * @param object $comment       The comment
     555     * @since 4.1.0 The `$comment_ID` and `$comment` parameters were added.
     556     *
     557     * @param string $excerpt    The comment excerpt text.
     558     * @param int    $comment_ID The comment ID.
     559     * @param object $comment    The comment object.
    549560     */
    550561    return apply_filters( 'get_comment_excerpt', $excerpt, $comment_ID, $comment );
     
    565576     *
    566577     * @since 1.2.0
    567      *
    568      * @param string $comment_excerpt   The comment excerpt text.
    569      * @param int    $comment_ID        The comment ID
     578     * @since 4.1.0 The `$comment_ID` parameter was added.
     579     *
     580     * @param string $comment_excerpt The comment excerpt text.
     581     * @param int    $comment_ID      The comment ID.
    570582     */
    571583    echo apply_filters( 'comment_excerpt', $comment_excerpt, $comment_ID );
     
    585597     *
    586598     * @since 1.5.0
    587      *
    588      * @param int       $comment_ID The current comment ID.
    589      * @param object    $comment    The comment
     599     * @since 4.1.0 The `$comment_ID` parameter was added.
     600     *
     601     * @param int    $comment_ID The current comment ID.
     602     * @param object $comment    The comment object.
    590603     */
    591604    return apply_filters( 'get_comment_ID', $comment->comment_ID, $comment );
     
    893906     *
    894907     * @since 1.5.0
    895      *
    896      * @param string  $comment_type The type of comment, such as 'comment', 'pingback', or 'trackback'.
    897      * @param int     $comment_ID   The comment ID
    898      * @param object  $comment      The comment
     908     * @since 4.1.0 The `$comment_ID` and `$comment` parameters were added.
     909     *
     910     * @param string $comment_type The type of comment, such as 'comment', 'pingback', or 'trackback'.
     911     * @param int    $comment_ID   The comment ID.
     912     * @param object $comment      The comment object.
    899913     */
    900914    return apply_filters( 'get_comment_type', $comment->comment_type, $comment_ID, $comment );
Note: See TracChangeset for help on using the changeset viewer.