Comments: Add `$data` parameter to include the comment data in the `edit_comment` action.
Props dshanske. Fixes #36427. Built from https://develop.svn.wordpress.org/trunk@37423 git-svn-id: http://core.svn.wordpress.org/trunk@37389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
251274abf6
commit
00adb457d2
|
@ -2031,10 +2031,12 @@ function wp_update_comment($commentarr) {
|
|||
* The hook also fires immediately before comment status transition hooks are fired.
|
||||
*
|
||||
* @since 1.2.0
|
||||
* @since 4.6.0 The `$data` parameter was added.
|
||||
*
|
||||
* @param int $comment_ID The comment ID.
|
||||
* @param int $comment_ID The comment ID.
|
||||
* @param array $data Comment data.
|
||||
*/
|
||||
do_action( 'edit_comment', $comment_ID );
|
||||
do_action( 'edit_comment', $comment_ID, $data );
|
||||
$comment = get_comment($comment_ID);
|
||||
wp_transition_comment_status($comment->comment_approved, $old_status, $comment);
|
||||
return $rval;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-alpha-37422';
|
||||
$wp_version = '4.6-alpha-37423';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue