From 472e427731274bd0e2df4bf3c72368228197a22f Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 21 Dec 2015 02:58:23 +0000 Subject: [PATCH] Comments: When a comment is submitted, ensure the `user_ID` element in the array that's passed to the `preprocess_comment` filter gets populated. Merges [36038] to the 4.4 branch. Fixes #34997 Built from https://develop.svn.wordpress.org/branches/4.4@36039 git-svn-id: http://core.svn.wordpress.org/branches/4.4@36004 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 5de9531322..61b34b758e 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -2750,7 +2750,7 @@ function wp_handle_comment_submission( $comment_data ) { $comment_author = $user->display_name; $comment_author_email = $user->user_email; $comment_author_url = $user->user_url; - $user_id = $user->ID; + $user_ID = $user->ID; if ( current_user_can( 'unfiltered_html' ) ) { if ( ! isset( $comment_data['_wp_unfiltered_html_comment'] ) || ! wp_verify_nonce( $comment_data['_wp_unfiltered_html_comment'], 'unfiltered-html-comment_' . $comment_post_ID ) @@ -2787,7 +2787,7 @@ function wp_handle_comment_submission( $comment_data ) { 'comment_content', 'comment_type', 'comment_parent', - 'user_id' + 'user_ID' ); $comment_id = wp_new_comment( wp_slash( $commentdata ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index d016de24cf..e28460fa59 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4.1-alpha-36037'; +$wp_version = '4.4.1-alpha-36039'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.