Make WordPress Core

Changeset 37423


Ignore:
Timestamp:
05/12/2016 03:36:58 PM (10 years ago)
Author:
rachelbaker
Message:

Comments: Add $data parameter to include the comment data in the edit_comment action.

Props dshanske.

Fixes #36427.

File:
1 edited

Legend:

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

    r37342 r37423  
    20322032         *
    20332033         * @since 1.2.0
    2034          *
    2035          * @param int $comment_ID The comment ID.
    2036          */
    2037         do_action( 'edit_comment', $comment_ID );
     2034         * @since 4.6.0 The `$data` parameter was added.
     2035         *
     2036         * @param int   $comment_ID The comment ID.
     2037         * @param array $data       Comment data.
     2038         */
     2039        do_action( 'edit_comment', $comment_ID, $data );
    20382040        $comment = get_comment($comment_ID);
    20392041        wp_transition_comment_status($comment->comment_approved, $old_status, $comment);
Note: See TracChangeset for help on using the changeset viewer.