Make WordPress Core

Changeset 36660


Ignore:
Timestamp:
02/24/2016 12:48:52 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Comments: Pass comment data to the comment_post filter.

Props dshanske.
See #34141.

File:
1 edited

Legend:

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

    r36626 r36660  
    18131813     *
    18141814     * @since 1.2.0
     1815     * @since 4.5.0 The `$commentdata` parameter was added.
    18151816     *
    18161817     * @param int        $comment_ID       The comment ID.
    18171818     * @param int|string $comment_approved 1 if the comment is approved, 0 if not, 'spam' if spam.
    1818      */
    1819     do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'] );
     1819     * @param array      $commentdata      Comment data.
     1820     */
     1821    do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'], $commentdata );
    18201822
    18211823    return $comment_ID;
Note: See TracChangeset for help on using the changeset viewer.